]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[X.25]: Add missing sock_put in x25_receive_data
authorAndrew Hendry <andrew.hendry@gmail.com>
Fri, 4 May 2007 22:00:25 +0000 (00:00 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 4 May 2007 22:00:25 +0000 (00:00 +0200)
__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>
net/x25/x25_dev.c

index adfe7b8df35591d29ee2d8a91de8bca57e9a3052..bd9c17b44bbb486ec3bdfac3c7f2ad155230ea0f 100644 (file)
@@ -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;
        }