summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-07-09 01:35:30 +0000
committerMarcel Holtmann <marcel@holtmann.org>2019-08-12 18:23:49 +0200
commit4974c839d45e2ac89ce0e82b49d548cc12e02a9c (patch)
tree04f7f81870080c014dc87532e542e455f6f7e988 /drivers/bluetooth
parent8059ba0bd0e4694e51c2ee6438a77b325f06c0d5 (diff)
downloadlinux-4974c839d45e2ac89ce0e82b49d548cc12e02a9c.tar.bz2
Bluetooth: hci_qca: Use kfree_skb() instead of kfree()
Use kfree_skb() instead of kfree() to free sk_buff. Fixes: 2faa3f15fa2f ("Bluetooth: hci_qca: wcn3990: Drop baudrate change vendor event") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_qca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 82a0a3691a63..3c9fd165fda6 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -912,7 +912,7 @@ static int qca_recv_event(struct hci_dev *hdev, struct sk_buff *skb)
if (hdr->evt == HCI_EV_VENDOR)
complete(&qca->drop_ev_comp);
- kfree(skb);
+ kfree_skb(skb);
return 0;
}