Skip to content

Commit

Permalink
irda: add missing BKL in irnet_ppp ioctl
Browse files Browse the repository at this point in the history
One ioctl has been forgotten when the BKL was push down into irnet_ppp
ioctl function.

Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and davem330 committed Feb 4, 2010
1 parent 454debe commit 3fdde0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/irda/irnet/irnet_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3fdde0a

Please sign in to comment.