diff options
author | Guo-Fu Tseng <cooldavid@cooldavid.org> | 2010-03-17 00:09:29 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-18 21:13:59 -0700 |
commit | 17da69b8bfbe441a33a873ad5dd7d3d85800bf2b (patch) | |
tree | ded4572726613cd596c81611dbfc5f52a49a9e9c | |
parent | 658cc524305c9759019c4430ded231f631472482 (diff) | |
download | op-kernel-dev-17da69b8bfbe441a33a873ad5dd7d3d85800bf2b.zip op-kernel-dev-17da69b8bfbe441a33a873ad5dd7d3d85800bf2b.tar.gz |
jme: Fix VLAN memory leak
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>
-rw-r--r-- | drivers/net/jme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 0f31497..cfc7b98 100644 --- 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); |