aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-06-22 13:42:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-22 14:32:24 -0400
commit69ae59d7d8df14413cf0a97b3e372d7dc8352563 (patch)
treec09d6e756a95346ab20edfbea71420a3522aed83 /drivers/char/pcmcia
parenteca41044268887838fa122aa24475df8f23d614c (diff)
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.c3
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)
1575 clear_bit(LOCK_IO, &dev->flags); 1575 clear_bit(LOCK_IO, &dev->flags);
1576 wake_up_interruptible(&dev->ioq); 1576 wake_up_interruptible(&dev->ioq);
1577 1577
1578 return 0; 1578 rc = 0;
1579 break;
1579 case CM_IOCSPTS: 1580 case CM_IOCSPTS:
1580 { 1581 {
1581 struct ptsreq krnptsreq; 1582 struct ptsreq krnptsreq;