Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757418AbcCaQmb (ORCPT ); Thu, 31 Mar 2016 12:42:31 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51489 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756946AbcCaQma (ORCPT ); Thu, 31 Mar 2016 12:42:30 -0400 Date: Thu, 31 Mar 2016 09:42:29 -0700 From: Greg KH To: "Hon Ching(Vicky) Lo" Cc: tpmdd-devel@lists.sourceforge.net, Peter Huewe , Ashley Lai , Jarkko Sakkinen , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] vTPM: fix missing error handling for suspend operation Message-ID: <20160331164229.GA16413@kroah.com> References: <1459435283-1163-1-git-send-email-honclo@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459435283-1163-1-git-send-email-honclo@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 19 On Thu, Mar 31, 2016 at 10:41:23AM -0400, Hon Ching(Vicky) Lo wrote: > ibmvtpm_send_crq in tpm_ibmvtpm_suspend returns errors in a more > granular level than what the existing code does. This patch adds > the missing CRQ transport event code checks to ensure appropriate > action taken, in the case that ibmvtpm_send_crq returns H_CLOSED. > > Signed-off-by: Hon Ching(Vicky) Lo > --- > drivers/char/tpm/tpm_ibmvtpm.c | 43 ++++++++++++++++++++++++++++++++++++--- > drivers/char/tpm/tpm_ibmvtpm.h | 7 ++++++ > 2 files changed, 46 insertions(+), 4 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.