From: Andrew Hendry Date: Tue, 16 Jan 2007 03:29:31 +0000 (-0800) Subject: [X.25]: Add missing sock_put in x25_receive_data X-Git-Tag: v2.6.20-rc6~5^2~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074;p=linux-2.6 [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 --- diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index 47b68a3016..328d80f000 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c @@ -56,6 +56,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; }