Bluetooth: guard against controllers sending zero'd events
authorAlain Michaud <alainm@chromium.org>
Tue, 3 Mar 2020 15:55:34 +0000 (15:55 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 4 Mar 2020 07:27:22 +0000 (08:27 +0100)
commit08bb4da90150e2a225f35e0f642cdc463958d696
tree22f7e6aa35c73e76c7f0015bbb1bce06b5fa6941
parent8a208b24d770c3db0099090a1ad62c848c363123
Bluetooth: guard against controllers sending zero'd events

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>
net/bluetooth/hci_event.c