diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-06-22 18:42:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-22 11:32:24 -0700 |
commit | 69ae59d7d8df14413cf0a97b3e372d7dc8352563 (patch) | |
tree | c09d6e756a95346ab20edfbea71420a3522aed83 /drivers/char/pcmcia | |
parent | eca41044268887838fa122aa24475df8f23d614c (diff) | |
download | blackbird-op-linux-69ae59d7d8df14413cf0a97b3e372d7dc8352563.tar.gz blackbird-op-linux-69ae59d7d8df14413cf0a97b3e372d7dc8352563.zip |
pcmcia/cm4000: fix lock imbalance
Don't return from switch/case, break instead, so that we unlock BKL.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/cm4000_cs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index dbb912574569..881934c068c8 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c @@ -1575,7 +1575,8 @@ static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) clear_bit(LOCK_IO, &dev->flags); wake_up_interruptible(&dev->ioq); - return 0; + rc = 0; + break; case CM_IOCSPTS: { struct ptsreq krnptsreq; |