mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
eca4104426
commit
69ae59d7d8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue