irda: unbalanced lock_kernel in irnet_ppp
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 1 Feb 2010 08:21:34 +0000 (08:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:14:22 +0000 (20:14 -0800)
Add the missing unlock_kernel in one ioctl operation.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irnet/irnet_ppp.c

index 156020d138b507685633feda14fa747d11c90538..7c22c126f0eadbd1eaceb388e5787b3a8b501524 100644 (file)
@@ -706,7 +706,8 @@ dev_irnet_ioctl(
       lock_kernel();
       if(ap->ppp_open && !put_user(ppp_unit_number(&ap->chan),
                                                (int __user *)argp))
-      err = 0;
+        err = 0;
+      unlock_kernel();
       break;
 
       /* All these ioctls can be passed both directly and from ppp_generic,