diff options
author | Daniel Ritz <daniel.ritz-ml@swissonline.ch> | 2006-11-25 14:09:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-25 16:28:33 -0500 |
commit | 8e4d9dcb4205dd43c4297168022ed0c6874fb918 (patch) | |
tree | 8888ae6ab859134eeb2b4ac40a826f39fe31eff8 /drivers | |
parent | 1abbfb412b1610ec3a7ec0164108cee01191d9f5 (diff) |
[PATCH] fix "pcmcia: fix 'rmmod pcmcia' with unbound devices"
Add required locking to dfbc9e9d33adb1ac9910dd7f8ceb911947039a52
Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Pavol Gono <Palo.Gono@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index a20d84d707d9..21d83a895b21 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -1272,7 +1272,9 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev, | |||
1272 | pccard_register_pcmcia(socket, NULL); | 1272 | pccard_register_pcmcia(socket, NULL); |
1273 | 1273 | ||
1274 | /* unregister any unbound devices */ | 1274 | /* unregister any unbound devices */ |
1275 | mutex_lock(&socket->skt_mutex); | ||
1275 | pcmcia_card_remove(socket, NULL); | 1276 | pcmcia_card_remove(socket, NULL); |
1277 | mutex_unlock(&socket->skt_mutex); | ||
1276 | 1278 | ||
1277 | pcmcia_put_socket(socket); | 1279 | pcmcia_put_socket(socket); |
1278 | 1280 | ||