Messages in this thread | | | Subject | Re: [PATCH net] Bluetooth: Fix potential null pointer dereference in create_le_conn_complete | From | Marcel Holtmann <> | Date | Mon, 23 Nov 2020 12:58:10 +0100 |
| |
Hi Wang,
> The pointer 'conn' may be null. Before being used by > hci_connect_le_scan_cleanup(), The pointer 'conn' must be > checked whether it is null. > > Fixes: 28a667c9c279 ("Bluetooth: advertisement handling in new connect procedure") > Reported-by: Hulk Robot <hulkci@huawei.com> > Signed-off-by: Wang Hai <wanghai38@huawei.com> > --- > net/bluetooth/hci_conn.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-)
please send a version that applies cleanly against bluetooth-next tree.
Regards
Marcel
| |