From: tom.leiming@gmail.com Date: Thu, 22 Mar 2012 03:22:38 +0000 (+0000) Subject: usbnet: don't clear urb->dev in tx_complete X-Git-Tag: v3.4-rc1~115^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d5440a835710d09f0ef18da5000541ec98b537a;p=pandora-kernel.git usbnet: don't clear urb->dev in tx_complete 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 Cc: Oliver Neukum Signed-off-by: Ming Lei Acked-by: Greg Kroah-Hartman Signed-off-by: David S. Miller --- Reading git-diff-tree failed