]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/bluetooth/hci_request.c
Bluetooth: Fix memory leak at end of hci requests
[karo-tx-linux.git] / net / bluetooth / hci_request.c
index c045b3c54768e478f49f600fa8ffdae4a59456fc..b0e23dfc5c3402654f2586b4e29dac9966c1c841 100644 (file)
@@ -262,6 +262,8 @@ int __hci_req_sync(struct hci_dev *hdev, int (*func)(struct hci_request *req,
                break;
        }
 
+       kfree_skb(hdev->req_skb);
+       hdev->req_skb = NULL;
        hdev->req_status = hdev->req_result = 0;
 
        BT_DBG("%s end: err %d", hdev->name, err);