]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix memory leak in le_scan_disable_work_complete()
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 21 Mar 2015 06:02:23 +0000 (08:02 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 22 Mar 2015 07:03:54 +0000 (08:03 +0100)
commitb27ceaedb279819d20185d75cb781af594cf0630
treef0b1f60266422f2777c16dd689fcaed1556702e0
parent1b4a173188c651a32a1ffddfc6a8844986b864d8
Bluetooth: Fix memory leak in le_scan_disable_work_complete()

The hci_request in le_scan_disable_work_complete() was being initialized
in a general context but only used in a specific branch in the function
(when simultaneous discovery is not supported). This patch moves the
usage to be limited to the branch where hci_req_run() is actually
called.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c