From: Johan Hedberg Date: Sat, 21 Mar 2015 06:02:23 +0000 (+0200) Subject: Bluetooth: Fix memory leak in le_scan_disable_work_complete() X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~118^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf880a96859cca79208122e555e7efeabd16e4d;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed