Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69ae59d7 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

pcmcia/cm4000: fix lock imbalance



Don't return from switch/case, break instead, so that we unlock BKL.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eca41044
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;