Bluetooth: guard against controllers sending zero'd events
authorAlain Michaud <alainm@chromium.org>
Tue, 3 Mar 2020 15:55:34 +0000 (15:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 11:12:36 +0000 (13:12 +0200)
commitdf7c23331f8547f69a752407ddad94a6bbbc52d8
tree8bea7b48fe5906ee28618993a2a7a2127caafb3c
parent2aa093c65cd3c5a7532f5288426dbdc55a801e5a
Bluetooth: guard against controllers sending zero'd events

[ Upstream commit 08bb4da90150e2a225f35e0f642cdc463958d696 ]

Some controllers have been observed to send zero'd events under some
conditions.  This change guards against this condition as well as adding
a trace to facilitate diagnosability of this condition.

Signed-off-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_event.c