Commit 454debe4 authored by Thadeu Lima de Souza Cascardo's avatar Thadeu Lima de Souza Cascardo Committed by David S. Miller

irda: unbalanced lock_kernel in irnet_ppp

Add the missing unlock_kernel in one ioctl operation.
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fdd3d631
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment