wil6210: use kfree_skb() instead of kfree()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 23 May 2013 09:10:43 +0000 (17:10 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 May 2013 17:18:22 +0000 (13:18 -0400)
Use kfree_skb() instead of kfree() to free sk_buff.

Introduced by commit e270045b569cc7030abd29857f3a4e7906524ec0
(wil6210: Sanity check for reported DMA length)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/txrx.c

index 082f76bdd5e5cfcbd8c75c22413a4cd173e7e9c6..00dffeda983ec5a8d2c48bdfdc61076cecdae3d9 100644 (file)
@@ -369,7 +369,7 @@ static struct sk_buff *wil_vring_reap_rx(struct wil6210_priv *wil,
 
        if (dmalen > sz) {
                wil_err(wil, "Rx size too large: %d bytes!\n", dmalen);
-               kfree(skb);
+               kfree_skb(skb);
                return NULL;
        }
        skb_trim(skb, dmalen);