aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2011-02-02 19:01:21 +0000
committerGrant Likely <[email protected]>2011-02-15 20:25:36 +0000
commit0f3e1d27a7e3f98d996d707d649128e229b65deb (patch)
tree0d5aacf251ae6ee733dcce5b2310e2d1128e7194 /net/unix/af_unix.c
parentMerge branch 'devicetree/merge' into spi/merge (diff)
downloadkernel-0f3e1d27a7e3f98d996d707d649128e229b65deb.tar.gz
kernel-0f3e1d27a7e3f98d996d707d649128e229b65deb.zip
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 <[email protected]> Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions