diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-23 09:10:43 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-24 17:18:22 (GMT) |
commit | 110dea0008c40a20f1ce280b636f87fff58a7403 (patch) | |
tree | 89f9b2e4774769aa4d3ccd81bebe235fd6f24579 | |
parent | 32ef8f499262309478f0225f5fc33910e1c8e199 (diff) | |
download | linux-110dea0008c40a20f1ce280b636f87fff58a7403.tar.xz |
wil6210: use kfree_skb() instead of kfree()
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>
-rw-r--r-- | drivers/net/wireless/ath/wil6210/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 082f76b..00dffed 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -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); |