]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10344c55da5e3af518d845aef68e72e682bd0bd6
treef67b73208d3cdb95f0fa3a75bc473f900038176c
parent152a2c06c5e99ab9d6e58c632b6481fd6c2ac4cc
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