lkml.org 
[lkml]   [2011]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] ppp: fix pptp double release_sock in pptp_bind()

    Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
    ---
    drivers/net/ppp/pptp.c | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
    index 89f829f..f8a6853 100644
    --- a/drivers/net/ppp/pptp.c
    +++ b/drivers/net/ppp/pptp.c
    @@ -423,10 +423,8 @@ static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr,
    lock_sock(sk);

    opt->src_addr = sp->sa_addr.pptp;
    - if (add_chan(po)) {
    - release_sock(sk);
    + if (add_chan(po))
    error = -EBUSY;
    - }

    release_sock(sk);
    return error;
    --
    1.7.1

    \
     
     \ /
      Last update: 2011-12-07 02:57    [W:0.019 / U:214.700 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site