From: Guo-Fu Tseng Date: Wed, 17 Mar 2010 00:09:29 +0000 (+0000) Subject: jme: Fix VLAN memory leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17da69b8bfbe441a33a873ad5dd7d3d85800bf2b;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Cc: stable@kernel.org Signed-off-by: David S. Miller --- 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);