diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-02-03 00:31:21 +0530 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-15 13:25:36 -0700 |
commit | 0f3e1d27a7e3f98d996d707d649128e229b65deb (patch) | |
tree | 0d5aacf251ae6ee733dcce5b2310e2d1128e7194 /kernel | |
parent | c170093d31bd4e3bc51881cc0f123beeca7872c9 (diff) |
spi/pxa2xx pci: fix the release - remove race
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions