Commit 7b8e2c1d authored by Oliver Neukum's avatar Oliver Neukum Committed by Linus Torvalds
Browse files

fix memory leak in fixed btusb_close

If the waker is killed before it can replay outstanding URBs, these URBs
won't be freed or will be replayed at the next open.  This patch closes
the window by explicitely discarding outstanding URBs.
Signed-off-by: default avatarOliver Neukum <>
Acked-by: default avatarMarcel Holtmann <>
Signed-off-by: default avatarLinus Torvalds <>
parent 479c2553
......@@ -600,11 +600,13 @@ static int btusb_close(struct hci_dev *hdev)
err = usb_autopm_get_interface(data->intf);
if (err < 0)
return 0;
goto failed;
data->intf->needs_remote_wakeup = 0;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment