Re: [PATCH v2] Bluetooth: msft: fix null pointer deref on msft_monitor_device_evt

From: Marcel Holtmann
Date: Sun Jan 23 2022 - 09:30:59 EST


Hi Soenke,

> 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@xxxxxxxxx>
> ---
> v2: Remove empty line
>
> net/bluetooth/msft.c | 2 ++
> 1 file changed, 2 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel