projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/x25: Fix skb leak in x25_lapb_receive_frame()
[linux-2.6-microblaze.git]
/
net
/
x25
/
x25_dev.c
diff --git
a/net/x25/x25_dev.c
b/net/x25/x25_dev.c
index
5259ef8
..
748d863
100644
(file)
--- a/
net/x25/x25_dev.c
+++ b/
net/x25/x25_dev.c
@@
-117,7
+117,7
@@
int x25_lapb_receive_frame(struct sk_buff *skb, struct net_device *dev,
if (!pskb_may_pull(skb, 1)) {
x25_neigh_put(nb);
-
return 0
;
+
goto drop
;
}
switch (skb->data[0]) {