Bluetooth: msft: fix null pointer deref on msft_monitor_device_evt
authorSoenke Huster <soenke.huster@eknoes.de>
Sun, 23 Jan 2022 05:57:09 +0000 (06:57 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Jan 2022 14:30:18 +0000 (15:30 +0100)
commit5201d23cc8e57531e0b17e41c0ae10405ba6abd3
tree639fe5ec48cdc2c0784e10b390906d95e2f38063
parentdb3f1f9b5d88d8d7f9eaa486f71784dd319285ff
Bluetooth: msft: fix null pointer deref on msft_monitor_device_evt

msft_find_handle_data returns NULL if it can't find the handle.
Therefore, handle_data must be checked, otherwise a null pointer
is dereferenced.

Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/msft.c