Thread (2 messages) 2 messages, 2 authors, 2012-03-22

Re: [PATCH 2/2] usbnet: don't clear urb->dev in tx_complete

flat view

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2012-03-22 14:36:11

On Thu, Mar 22, 2012 at 09:22:38PM +0800, Ming Lei wrote:
URB unlinking is always racing with its completion and tx_complete
may be called before or during running usb_unlink_urb, so tx_complete
must not clear urb->dev since it will be used in unlink path,
otherwise invalid memory accesses or usb device leak may be caused
inside usb_unlink_urb.

Cc: stable@kernel.org
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help