Commit 110dea00 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

wil6210: use kfree_skb() instead of kfree()

Use kfree_skb() instead of kfree() to free sk_buff.

Introduced by commit e270045b

(wil6210: Sanity check for reported DMA length)
Signed-off-by: default avatarWei Yongjun <>
Signed-off-by: default avatarJohn W. Linville <>
parent 32ef8f49
......@@ -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);
return NULL;
skb_trim(skb, dmalen);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment