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 18:40:08 +0000 (20:40 +0200)
commite500a986ebb951b6a51ff972ab1727f185b6b3eb
tree14104d259fde02d10378c49362924f9e2929d682
parent12b28adc976ee2094cdb1bb5788355caa15179aa
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