summaryrefslogtreecommitdiffstats
path: root/net/x25/x25_dev.c
diff options
context:
space:
mode:
authorAndrew Hendry <andrew.hendry@gmail.com>2007-01-15 19:29:31 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-01-23 20:25:48 -0800
commit9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074 (patch)
tree13f05291c849a043a8a5bfcdce1da77a9fd7e562 /net/x25/x25_dev.c
parent732ba35e759112be5cecd79d4351084edf88dba7 (diff)
downloadlinux-9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074.tar.gz
linux-9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074.tar.bz2
linux-9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074.zip
[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 <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_dev.c')
-rw-r--r--net/x25/x25_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c
index 47b68a301677..328d80f000ad 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;
}