hci_conn: prevent call with NULL pointer.

This commit is contained in:
Sorgelig
2021-08-31 06:27:02 +08:00
parent 0d8641a2b9
commit 523b02e4e7

View File

@@ -805,7 +805,7 @@ static void create_le_conn_complete(struct hci_dev *hdev, u8 status, u16 opcode)
hci_req_resume_adv_instances(hdev);
if (!status) {
hci_connect_le_scan_cleanup(conn);
if(conn) hci_connect_le_scan_cleanup(conn);
goto done;
}