Skip to content

Commit

Permalink
[PATCH] pcmcia: fix multiple insertion of multifunction cards
Browse files Browse the repository at this point in the history
The ordering of setting and clearing device_add_pending went wrong on some
occasions, causing multifunction cards only to be handled correctly on the
first insertion, not on subsequent ones.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Aug 1, 2005
1 parent 2b8d466 commit 5d546f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@ static void pcmcia_delayed_add_pseudo_device(void *data)
static inline void pcmcia_add_pseudo_device(struct pcmcia_socket *s)
{
if (!s->pcmcia_state.device_add_pending) {
schedule_work(&s->device_add);
s->pcmcia_state.device_add_pending = 1;
schedule_work(&s->device_add);
}
return;
}
Expand Down

0 comments on commit 5d546f5

Please sign in to comment.