projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
658cc52
)
jme: Fix VLAN memory leak
author
Guo-Fu Tseng
<cooldavid@cooldavid.org>
Wed, 17 Mar 2010 00:09:29 +0000
(
00:09
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Mar 2010 04:13:59 +0000
(21:13 -0700)
Fix memory leak while receiving 8021q tagged packet which is not
registered by user.
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c
patch
|
blob
|
history
diff --git
a/drivers/net/jme.c
b/drivers/net/jme.c
index
0f31497
..
cfc7b98
100644
(file)
--- a/
drivers/net/jme.c
+++ b/
drivers/net/jme.c
@@
-946,6
+946,8
@@
jme_alloc_and_feed_skb(struct jme_adapter *jme, int idx)
jme->jme_vlan_rx(skb, jme->vlgrp,
le16_to_cpu(rxdesc->descwb.vlan));
NET_STAT(jme).rx_bytes += 4;
+ } else {
+ dev_kfree_skb(skb);
}
} else {
jme->jme_rx(skb);