提交 454debe4 编写于 作者: T Thadeu Lima de Souza Cascardo 提交者: David S. Miller

irda: unbalanced lock_kernel in irnet_ppp

Add the missing unlock_kernel in one ioctl operation.
Signed-off-by: NThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册