diff options
author | 2011-08-04 07:58:07 +0800 | |
---|---|---|
committer | 2011-09-23 09:46:17 +1000 | |
commit | de69113ec1896443c732e8b812e8005fb44eeeeb (patch) | |
tree | 9885a62b06d34dd407deb1c6c597a4f8ed73153a /drivers/scsi/libsas/sas_expander.c | |
parent | TPM: TCG_ATMEL should depend on HAS_IOPORT (diff) | |
download | linux-rng-de69113ec1896443c732e8b812e8005fb44eeeeb.tar.xz linux-rng-de69113ec1896443c732e8b812e8005fb44eeeeb.zip |
TPM: tpm_nsc: Fix a double free of pdev in cleanup_nsc
platform_device_unregister() will release all resources
and remove it from the subsystem, then drop reference count by
calling platform_device_put().
We should not call kfree(pdev) after platform_device_unregister(pdev).
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'drivers/scsi/libsas/sas_expander.c')
0 files changed, 0 insertions, 0 deletions