Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev)

	BT_DBG("%s", hdev->name);

	kfree(data->rx_skb[0]);
	kfree(data->rx_skb[1]);
	kfree_skb(data->rx_skb[0]);
	kfree_skb(data->rx_skb[1]);
	kfree(data);
}