]> 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)
commit9878e79ee970203ed1a4607989a0b1e4be8b9fb0
treef67b73208d3cdb95f0fa3a75bc473f900038176c
parent944b5f6bfb6b3c8ab81368a6595e904a74b5f32f
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