Axel Lin de69113ec1 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>
2011-09-23 09:46:17 +10:00
..
2011-07-28 01:30:07 -07:00
2011-09-14 03:55:05 -07:00
2011-09-11 09:33:41 -03:00
2011-09-06 16:37:59 +02:00
2011-09-21 02:14:13 -04:00
2011-08-25 16:25:33 -07:00