diff options
author | Guo-Fu Tseng <cooldavid@cooldavid.org> | 2010-03-17 01:09:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-19 05:13:59 +0100 |
commit | 17da69b8bfbe441a33a873ad5dd7d3d85800bf2b (patch) | |
tree | ded4572726613cd596c81611dbfc5f52a49a9e9c /drivers/net/jme.c | |
parent | KS8851: Avoid NULL pointer in set rx mode (diff) | |
download | linux-17da69b8bfbe441a33a873ad5dd7d3d85800bf2b.tar.xz linux-17da69b8bfbe441a33a873ad5dd7d3d85800bf2b.zip |
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>
Diffstat (limited to 'drivers/net/jme.c')
-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 0f31497833df..cfc7b9824d6f 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); |