Re: [Linux-kernel-mentees] [PATCH 2/2] net/bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt()

From: Marcel Holtmann
Date: Mon Jul 13 2020 - 12:42:12 EST


Hi Peilin,

> Check `num_rsp` before using it as for-loop counter. Add `unlock` label.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Peilin Ye <yepeilin.cs@xxxxxxxxx>
> ---
> net/bluetooth/hci_event.c | 7 +++++++
> 1 file changed, 7 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel