Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933219AbcDYTJZ (ORCPT ); Mon, 25 Apr 2016 15:09:25 -0400 Received: from e17.ny.us.ibm.com ([129.33.205.207]:43681 "EHLO e17.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932699AbcDYTJX (ORCPT ); Mon, 25 Apr 2016 15:09:23 -0400 X-IBM-Helo: d01dlp02.pok.ibm.com X-IBM-MailFrom: stefanb@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-security-module@vger.kernel.org Subject: Re: [PATCH] tpm: check for TPM_CHIP_FLAG_TPM2 before calling tpm2_shutdown() To: Jason Gunthorpe , Jarkko Sakkinen References: <1461576090-24813-1-git-send-email-jarkko.sakkinen@linux.intel.com> <20160425175720.GB7675@obsidianresearch.com> Cc: Peter Huewe , linux-security-module@vger.kernel.org, Marcel Selhorst , "moderated list:TPM DEVICE DRIVER" , open list From: Stefan Berger Message-ID: <571E6B5B.6020701@linux.vnet.ibm.com> Date: Mon, 25 Apr 2016 15:09:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160425175720.GB7675@obsidianresearch.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16042519-0041-0000-0000-000003F766D0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 524 Lines: 10 On 04/25/2016 01:57 PM, Jason Gunthorpe wrote: > On Mon, Apr 25, 2016 at 12:21:30PM +0300, Jarkko Sakkinen wrote: >> Signed-off-by: Jarkko Sakkinen >> Reported-by: Stefan Berger >> drivers/char/tpm/tpm-chip.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-By: Jason Gunthorpe > Fixes: 20e0152393b41 ("tpm: fix crash in tpm_tis deinitialization") Tested-by: Stefan Berger