Bluetooth: btwilink: Fix unexpected skb free
authorLoic Poulain <loic.poulain@intel.com>
Tue, 23 May 2017 09:51:00 +0000 (11:51 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 May 2017 14:19:38 +0000 (16:19 +0200)
commita6187ffdfcc854ce4d97f307e12508a4bde8bcf3
tree01d4ffd7504f07588b22ccc439a86a3b6a5627f2
parent823b84201f4a719414d61b105fd23706c5668ab5
Bluetooth: btwilink: Fix unexpected skb free

The caller (hci_core) still owns the skb in case of error, releasing
it inside the send function can lead to use-after-free errors.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btwilink.c