summaryrefslogtreecommitdiffstats
path: root/net/irda/irnet/irnet_ppp.c
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo2010-02-01 09:21:34 +0100
committerDavid S. Miller2010-02-04 05:14:22 +0100
commit454debe45c86102528c90c12eb6a99245b773bfe (patch)
tree2d8efbdf9958390e46bbd477912eb1d65d69eda1 /net/irda/irnet/irnet_ppp.c
parentixgbe: Fix return of invalid txq (diff)
downloadkernel-qcow2-linux-454debe45c86102528c90c12eb6a99245b773bfe.tar.gz
kernel-qcow2-linux-454debe45c86102528c90c12eb6a99245b773bfe.tar.xz
kernel-qcow2-linux-454debe45c86102528c90c12eb6a99245b773bfe.zip
irda: unbalanced lock_kernel in irnet_ppp
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>
Diffstat (limited to 'net/irda/irnet/irnet_ppp.c')
-rw-r--r--net/irda/irnet/irnet_ppp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c
index 156020d138b5..7c22c126f0ea 100644
--- a/net/irda/irnet/irnet_ppp.c
+++ b/net/irda/irnet/irnet_ppp.c
@@ -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,