summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>2010-02-01 09:21:35 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-04 05:14:23 +0100
commit3fdde0a1602d20c02a7d66e07ab6718ab8d79b12 (patch)
treee298e319232b59ca8ddfbab3e9a88c07112f6052
parentirda: unbalanced lock_kernel in irnet_ppp (diff)
downloadlinux-3fdde0a1602d20c02a7d66e07ab6718ab8d79b12.tar.xz
linux-3fdde0a1602d20c02a7d66e07ab6718ab8d79b12.zip
irda: add missing BKL in irnet_ppp ioctl
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>
-rw-r--r--net/irda/irnet/irnet_ppp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c
index 7c22c126f0ea..6b3602de359a 100644
--- a/net/irda/irnet/irnet_ppp.c
+++ b/net/irda/irnet/irnet_ppp.c
@@ -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();