diff options
author | Andrew Hendry <andrew.hendry@gmail.com> | 2007-05-05 00:00:25 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-05-05 00:00:25 +0200 |
commit | 0fbccb97e946be6db683926331b150da63431088 (patch) | |
tree | 155c5c86739f1855f9c840dd076415dd5f96d5ab | |
parent | c0ff8b5abae6dd56585e375a3b34211de037033a (diff) |
[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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r-- | net/x25/x25_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |