]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_ll: Fix NULL pointer deref on FW upload failure
authorSebastian Reichel <sre@kernel.org>
Sat, 15 Apr 2017 21:54:13 +0000 (23:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Apr 2017 08:28:40 +0000 (10:28 +0200)
commit1520dec6786460eff0296513d2134d311cb48db1
treecc5074c8d7cc0ff668acda681ab15ce4361f0dab
parent566168b3e86ef02c3463f2de5622d8f75bf01dd2
Bluetooth: hci_ll: Fix NULL pointer deref on FW upload failure

Avoid NULL pointer dereference occurring due to freeing
skb containing an error pointer. It can easily be triggered
by using the driver with broken uart (i.e. due to misconfigured
pinmuxing).

Fixes: 6c38e640ef46 ("bluetooth: hci_uart: add LL protocol serdev driver support")
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c