https://github.com/torvalds/linux
Revision 0f3e1d27a7e3f98d996d707d649128e229b65deb authored by Sebastian Andrzej Siewior on 02 February 2011, 19:01:21 UTC, committed by Grant Likely on 15 February 2011, 20:25:36 UTC
Right now the platform device and its platform data is included in one big
struct which requires its custom ->release function. The problem with the
release function within the driver is that it might be called after the
driver was removed because someone was holding a reference to it and it
was not called right after platform_device_unregister(). So we also free
the platform device memory to which one might hold a reference.

This patch uses the normal pdev functions so this kind of race does not
occur.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent c170093
History
Tip revision: 0f3e1d27a7e3f98d996d707d649128e229b65deb authored by Sebastian Andrzej Siewior on 02 February 2011, 19:01:21 UTC
spi/pxa2xx pci: fix the release - remove race
Tip revision: 0f3e1d2
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-- 936 bytes
.mailmap -rw-r--r-- 4.0 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 185.7 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top