lkml.org 
[lkml]   [2010]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] irda: unbalanced lock_kernel in irnet_ppp
    Date
    Add the missing unlock_kernel in one ioctl operation.

    Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
    ---
    net/irda/irnet/irnet_ppp.c | 3 ++-
    1 files changed, 2 insertions(+), 1 deletions(-)

    diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c
    index d6b502c..8d38fdd 100644
    --- a/net/irda/irnet/irnet_ppp.c
    +++ b/net/irda/irnet/irnet_ppp.c
    @@ -703,7 +703,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,
    --
    1.6.6.1


    \
     
     \ /
      Last update: 2010-02-01 19:29    [W:0.019 / U:29.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site