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:26:30 -07:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 20:43:33 +02:00
2011-03-31 11:26:23 -03:00
2010-10-15 15:53:27 +02:00
2011-02-02 15:28:19 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-08-03 14:25:21 -10:00
2011-01-10 08:51:44 -08:00
2011-03-31 11:26:23 -03:00
2010-10-15 15:53:27 +02:00