commit | 64d8d46f5f501a19aec4db7ff93faf1b831d05ed | [log] [tgz] |
---|---|---|
author | Dominik Brodowski <linux@dominikbrodowski.net> | Sat Jan 16 01:14:38 2010 +0100 |
committer | Dominik Brodowski <linux@dominikbrodowski.net> | Wed Feb 17 17:48:17 2010 +0100 |
tree | eae12e7cfea8259449eb14da6e449938773ac1fe | |
parent | 9e86749cff70fca505c7c1a9dc760d193f27a059 [diff] [blame] |
pcmcia: properly lock skt->irq, skt->irq_mask Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
diff --git a/drivers/pcmcia/socket_sysfs.c b/drivers/pcmcia/socket_sysfs.c index 537d793..1cba9d3 100644 --- a/drivers/pcmcia/socket_sysfs.c +++ b/drivers/pcmcia/socket_sysfs.c
@@ -167,7 +167,9 @@ ret = sscanf(buf, "0x%x\n", &mask); if (ret == 1) { + mutex_lock(&s->ops_mutex); s->irq_mask &= mask; + mutex_unlock(&s->ops_mutex); ret = 0; }