From 0fbccb97e946be6db683926331b150da63431088 Mon Sep 17 00:00:00 2001 From: Andrew Hendry Date: Sat, 5 May 2007 00:00:25 +0200 Subject: [X.25]: Add missing sock_put in x25_receive_data __x25_find_socket does a sock_hold. This adds a missing sock_put in x25_receive_data. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- net/x25/x25_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index adfe7b8df35..bd9c17b44bb 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c @@ -57,6 +57,7 @@ static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) sk_add_backlog(sk, skb); } bh_unlock_sock(sk); + sock_put(sk); return queued; } -- cgit v1.2.3-18-g5258