Commit cbafe312 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by David S. Miller

bpa10x: free sk_buff with kfree_skb

Inspired by Sergio Luis' similar patches, I finally found
a case which is trivial enough that spatch won't choke
on it.
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a4322266
...@@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev) ...@@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev)
BT_DBG("%s", hdev->name); BT_DBG("%s", hdev->name);
kfree(data->rx_skb[0]); kfree_skb(data->rx_skb[0]);
kfree(data->rx_skb[1]); kfree_skb(data->rx_skb[1]);
kfree(data); kfree(data);
} }
......
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