From: Johan Hedberg Date: Fri, 4 Jul 2014 09:37:16 +0000 (+0300) Subject: Bluetooth: Fix missing return statement in process_adv_report X-Git-Tag: v4.13~6911^2~73^2~87^2~75 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=97bf2e99934bdfd3f91914e6c935271b62567470;p=mirror_ubuntu-bionic-kernel.git Bluetooth: Fix missing return statement in process_adv_report If we're doing passive scanning we shouldn't proceed with any of the code that deals with active scanning (pending reports, etc.). This patch fixes a missing return statement for the passive scanning section in the process_adv_report() function. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 20317e516e74..e0407e674061 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -4256,6 +4256,7 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr, flags = 0; mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, rssi, flags, data, len, NULL, 0); + return; } /* When receiving non-connectable or scannable undirected