Skip to content

Commit

Permalink
irda: unbalanced lock_kernel in irnet_ppp
Browse files Browse the repository at this point in the history
Add the missing unlock_kernel in one ioctl operation.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and David S. Miller committed Feb 4, 2010
1 parent fdd3d63 commit 454debe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/irda/irnet/irnet_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 454debe

Please sign in to comment.