projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732ba35
)
[X.25]: Add missing sock_put in x25_receive_data
author
Andrew Hendry
<andrew.hendry@gmail.com>
Tue, 16 Jan 2007 03:29:31 +0000
(19:29 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 24 Jan 2007 04:25:48 +0000
(20:25 -0800)
__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>
net/x25/x25_dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/x25/x25_dev.c
b/net/x25/x25_dev.c
index 47b68a301677a7e65ff647f6cf484abccba1b81f..328d80f000ad67dbc6162b6fb97c542621e1f2d6 100644
(file)
--- 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;
}