https://github.com/torvalds/linux
Revision de69113ec1896443c732e8b812e8005fb44eeeeb authored by Axel Lin on 03 August 2011, 23:58:07 UTC, committed by James Morris on 22 September 2011, 23:46:17 UTC
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>
1 parent 5ce5ed3
History
Tip revision: de69113ec1896443c732e8b812e8005fb44eeeeb authored by Axel Lin on 03 August 2011, 23:58:07 UTC
TPM: tpm_nsc: Fix a double free of pdev in cleanup_nsc
Tip revision: de69113
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 196.7 KB
Makefile -rw-r--r-- 52.3 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top