Bluetooth: hci_qca: Use kfree_skb() instead of kfree()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 9 Jul 2019 01:35:30 +0000 (01:35 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 12 Aug 2019 16:23:49 +0000 (18:23 +0200)
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>
drivers/bluetooth/hci_qca.c

index 82a0a3691a63c701075e03ed44a408d13d7c4e66..3c9fd165fda6d84c2d8e213be93e4ddf4dab1511 100644 (file)
@@ -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;
        }