Re: [patch]fix memory leak in fixed btusb_close

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Linus,

> 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: Oliver Neukum <oliver@xxxxxxxxxx>
> 
> Linus,
> 
> this fixes a memory leak in your fix of btusb.
> 
> 	Regards
> 		Oliver
> 
> --
> 
> commit 8a3e793888c75bc7a49ff8b0be7ec6bd5438d985
> Author: Oliver Neukum <oliver@xxxxxxxxxx>
> Date:   Thu Nov 12 16:41:46 2009 +0100
> 
>     btusb: close race in disconnect leading to a memory leak
>     
>     if the waker work is cancelled any deferred IO must be discarded
>     in close to free the memory and make sure the data isn't replayed
>     later

Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>

In case you wanna take it this late. Otherwise let me know and I queue
it up for the next merge window.

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux