irda: add missing BKL in irnet_ppp ioctl
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 1 Feb 2010 08:21:35 +0000 (08:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:14:23 +0000 (20:14 -0800)
One ioctl has been forgotten when the BKL was push down into irnet_ppp
ioctl function.

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 7c22c126f0eadbd1eaceb388e5787b3a8b501524..6b3602de359ae556761ec10effa42151c0a92817 100644 (file)
@@ -698,9 +698,11 @@ dev_irnet_ioctl(
 
       /* Query PPP channel and unit number */
     case PPPIOCGCHAN:
+      lock_kernel();
       if(ap->ppp_open && !put_user(ppp_channel_index(&ap->chan),
                                                (int __user *)argp))
        err = 0;
+      unlock_kernel();
       break;
     case PPPIOCGUNIT:
       lock_kernel();