projects
/
wrapfs-4.13.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ff8b5
)
[X.25]: Add missing sock_put in x25_receive_data
author
Andrew Hendry
<andrew.hendry@gmail.com>
Fri, 4 May 2007 22:00:25 +0000
(
00:00
+0200)
committer
Adrian 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
patch
|
blob
|
history
diff --git
a/net/x25/x25_dev.c
b/net/x25/x25_dev.c
index adfe7b8df35591d29ee2d8a91de8bca57e9a3052..bd9c17b44bbb486ec3bdfac3c7f2ad155230ea0f 100644
(file)
--- 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;
}