From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754861AbdBGRGB (ORCPT ); Tue, 7 Feb 2017 12:06:01 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:54709 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbdBGRGA (ORCPT ); Tue, 7 Feb 2017 12:06:00 -0500 Date: Tue, 7 Feb 2017 10:05:43 -0700 From: Jason Gunthorpe To: Wei Yongjun Cc: Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Wei Yongjun , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] tpm_tis: fix the error handling of init_tis() Message-ID: <20170207170543.GA1077@obsidianresearch.com> References: <20170207155147.2581-1-weiyj.lk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170207155147.2581-1-weiyj.lk@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 07, 2017 at 03:51:47PM +0000, Wei Yongjun wrote: > From: Wei Yongjun > > Add the missing platform_driver_unregister() and remove the duplicate > platform_device_unregister(force_pdev) in the error handling case. > > Fixes: 00194826e6be ("tpm_tis: Clean up the force=1 module parameter") > Signed-off-by: Wei Yongjun > drivers/char/tpm/tpm_tis.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Yep. Thanks Reviewed-by: Jason Gunthorpe Jason