Skip to content

Commit

Permalink
[PATCH] fix "pcmcia: fix 'rmmod pcmcia' with unbound devices"
Browse files Browse the repository at this point in the history
Add required locking to dfbc9e9

Signed-off-by: Daniel Ritz <[email protected]>
Cc: Dominik Brodowski <[email protected]>
Cc: Pavol Gono <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dr-itz authored and Linus Torvalds committed Nov 25, 2006
1 parent 1abbfb4 commit 8e4d9dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,9 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev,
pccard_register_pcmcia(socket, NULL);

/* unregister any unbound devices */
mutex_lock(&socket->skt_mutex);
pcmcia_card_remove(socket, NULL);
mutex_unlock(&socket->skt_mutex);

pcmcia_put_socket(socket);

Expand Down

0 comments on commit 8e4d9dc

Please sign in to comment.