diff options
| author | David S. Miller <davem@davemloft.net> | 2010-02-09 14:44:44 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-02-09 14:44:44 -0500 |
| commit | b1109bf085c8dd69537b7876ea83f914dd1fe46a (patch) | |
| tree | 086bd9891a8c92284ea148c93f2242e6c7c02bd2 /net/irda | |
| parent | 889b8f964f2f226b7cd5a0a515109e3d8d9d1613 (diff) | |
| parent | 44bfce5c3ec91baf8ffcd075c66711740f29a949 (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/irda')
| -rw-r--r-- | net/irda/irnet/irnet_ppp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c index 156020d138b5..6b3602de359a 100644 --- a/net/irda/irnet/irnet_ppp.c +++ b/net/irda/irnet/irnet_ppp.c | |||
| @@ -698,15 +698,18 @@ dev_irnet_ioctl( | |||
| 698 | 698 | ||
| 699 | /* Query PPP channel and unit number */ | 699 | /* Query PPP channel and unit number */ |
| 700 | case PPPIOCGCHAN: | 700 | case PPPIOCGCHAN: |
| 701 | lock_kernel(); | ||
| 701 | if(ap->ppp_open && !put_user(ppp_channel_index(&ap->chan), | 702 | if(ap->ppp_open && !put_user(ppp_channel_index(&ap->chan), |
| 702 | (int __user *)argp)) | 703 | (int __user *)argp)) |
| 703 | err = 0; | 704 | err = 0; |
| 705 | unlock_kernel(); | ||
| 704 | break; | 706 | break; |
| 705 | case PPPIOCGUNIT: | 707 | case PPPIOCGUNIT: |
| 706 | lock_kernel(); | 708 | lock_kernel(); |
| 707 | if(ap->ppp_open && !put_user(ppp_unit_number(&ap->chan), | 709 | if(ap->ppp_open && !put_user(ppp_unit_number(&ap->chan), |
| 708 | (int __user *)argp)) | 710 | (int __user *)argp)) |
| 709 | err = 0; | 711 | err = 0; |
| 712 | unlock_kernel(); | ||
| 710 | break; | 713 | break; |
| 711 | 714 | ||
| 712 | /* All these ioctls can be passed both directly and from ppp_generic, | 715 | /* All these ioctls can be passed both directly and from ppp_generic, |
