diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-16 13:06:40 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-02-17 17:48:23 +0100 |
commit | 3f565232c561fbd9d5e03354aac29b90cb2bc78a (patch) | |
tree | e8da4dc6a2ed90777f9d122fd86eea92c47d61a1 /include/pcmcia/ds.h | |
parent | 94a819f80297e1f635a7cde4ed5317612e512ba7 (diff) | |
download | kernel_samsung_smdk4412-3f565232c561fbd9d5e03354aac29b90cb2bc78a.zip kernel_samsung_smdk4412-3f565232c561fbd9d5e03354aac29b90cb2bc78a.tar.gz kernel_samsung_smdk4412-3f565232c561fbd9d5e03354aac29b90cb2bc78a.tar.bz2 |
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/ds.h')
-rw-r--r-- | include/pcmcia/ds.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index ee14857..d57847f 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; }; |