Bluetooth: Fix null pointer deref on unexpected status event
authorSoenke Huster <soenke.huster@eknoes.de>
Fri, 22 Jul 2022 11:53:07 +0000 (13:53 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 9 Aug 2022 00:04:37 +0000 (17:04 -0700)
commitce78e557ff8819f2d10e8d6bae79404bfbbd6809
treef67b73208d3cdb95f0fa3a75bc473f900038176c
parent0eee4995f40573f65ed67cea4d20fcf389d353de
Bluetooth: Fix null pointer deref on unexpected status event

__hci_cmd_sync returns NULL if the controller responds with a status
event. This is unexpected for the commands sent here, but on
occurrence leads to null pointer dereferences and thus must be
handled.

Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/aosp.c
net/bluetooth/msft.c