irda: add missing BKL in irnet_ppp ioctl

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, February 10, 2010 - 8:59 am

Gitweb:     http://git.kernel.org/linus/3fdde0a1602d20c02a7d66e07ab6718ab8d79b12
Commit:     3fdde0a1602d20c02a7d66e07ab6718ab8d79b12
Parent:     454debe45c86102528c90c12eb6a99245b773bfe
Author:     Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
AuthorDate: Mon Feb 1 08:21:35 2010 +0000
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Wed Feb 3 20:14:23 2010 -0800

    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>
---
 net/irda/irnet/irnet_ppp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c
index 7c22c12..6b3602d 100644
--- a/net/irda/irnet/irnet_ppp.c
+++ b/net/irda/irnet/irnet_ppp.c
@@ -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();
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
irda: add missing BKL in irnet_ppp ioctl, Linux Kernel Mailing ..., (Wed Feb 10, 8:59 am)