]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/irda/irnet/irnet_ppp.c
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mv-sheeva.git] / 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();