From: Christian Lamparter Date: Tue, 9 Dec 2008 14:14:37 +0000 (+0100) Subject: p54usb: rewriting rx/tx routines to make use of usb_anchor's facilities X-Git-Tag: v2.6.29-rc1~581^2~203^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd397dc9dddfa2149a1bbc9e52ac7d5630737cec;p=pandora-kernel.git p54usb: rewriting rx/tx routines to make use of usb_anchor's facilities Alan Stern found several flaws in p54usb's implementation and annotated: "usb_kill_urb() and similar routines do not expect an URB's completion routine to deallocate it.  This is almost obvious -- if the URB is deallocated before the completion routine returns then there's no way for usb_kill_urb to detect when the URB actually is complete." This patch addresses all known limitations in the old implementation and fixes khub's "use-after-freed" hang, when SLUB debug's poisoning option is enabled. Signed-off-by: Christian Lamparter Cc: stable@kernel.org Tested-by: Larry Finger Signed-off-by: John W. Linville --- Reading git-diff-tree failed