summaryrefslogtreecommitdiff
path: root/include/pcmcia
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-01-16 13:06:40 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2010-02-17 17:48:23 +0100
commit3f565232c561fbd9d5e03354aac29b90cb2bc78a (patch)
treee8da4dc6a2ed90777f9d122fd86eea92c47d61a1 /include/pcmcia
parent94a819f80297e1f635a7cde4ed5317612e512ba7 (diff)
downloadlwn-3f565232c561fbd9d5e03354aac29b90cb2bc78a.tar.gz
lwn-3f565232c561fbd9d5e03354aac29b90cb2bc78a.zip
pcmcia: use mutex for dynid lock
Even though we weren't calling a blocking function within the dynid spinlock, we do not need a spinlock here but can and should be using a mutex. Reported-by: Jiri Slaby <jirislaby@gmail.com> Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia')
-rw-r--r--include/pcmcia/ds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index ee148573c114..d57847f2f6c1 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -40,7 +40,7 @@ struct net_device;
* Documentation/pcmcia/driver.txt for details.
*/
struct pcmcia_dynids {
- spinlock_t lock;
+ struct mutex lock;
struct list_head list;
};