mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
454debe45c
commit
3fdde0a160
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user