Skip to content
Commit b78763e0 authored by Peilin Ye's avatar Peilin Ye Committed by Greg Kroah-Hartman
Browse files

Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt()



commit 629b49c8 upstream.

Check `num_rsp` before using it as for-loop counter. Add `unlock` label.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPeilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70d1e884
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment