]> git.hungrycats.org Git - linux/commit
tpm_tis: fix the error handling of init_tis()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 7 Feb 2017 15:51:47 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:44:09 +0000 (06:44 +0100)
commitb54dc49d8c4f2b1ab5ea27cca47db3fb8fa51ddf
tree07c7704b3a180be54e6cf0da2b07944fa5dce6c5
parentc15aff9ef90139b83e806c1978201b51e012b736
tpm_tis: fix the error handling of init_tis()

commit 5939eaf4f9d432586dd2cdeea778506471e8088e upstream.

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 <weiyongjun1@huawei.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis.c