lkml.org 
[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[127/156] x25: use limited socket backlog
    2.6.33-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Zhu Yi <yi.zhu@intel.com>

    [ Upstream commit 2499849ee8f513e795b9f2c19a42d6356e4943a4 ]

    Make x25 adapt to the limited socket backlog change.

    Cc: Andrew Hendry <andrew.hendry@gmail.com>
    Signed-off-by: Zhu Yi <yi.zhu@intel.com>
    Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/x25/x25_dev.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/x25/x25_dev.c
    +++ b/net/x25/x25_dev.c
    @@ -53,7 +53,7 @@ static int x25_receive_data(struct sk_bu
    if (!sock_owned_by_user(sk)) {
    queued = x25_process_rx_frame(sk, skb);
    } else {
    - sk_add_backlog(sk, skb);
    + queued = !sk_add_backlog_limited(sk, skb);
    }
    bh_unlock_sock(sk);
    sock_put(sk);



    \
     
     \ /
      Last update: 2010-03-31 01:33    [W:5.396 / U:0.444 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site