From: yuzheng ma Date: Wed, 15 Aug 2012 08:11:40 +0000 (+0800) Subject: usb: musb: host: fix for musb_start_urb Oops X-Git-Tag: v3.6-rc6~19^2~5^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3067779b1566ae5fb6af40f03ae874ac47035523;p=pandora-kernel.git usb: musb: host: fix for musb_start_urb Oops when using musb_urb_enqueue to submit three urbs to the same endpoint, when hep->hcpriv is NULL, qh will be allocated when the first urb is completed. When the IRQ completes the next two urbs, qh->hep->hcpriv will be set to NULL. Now the second urb get musb->lock and executes musb_schedule(), but next_urb(qh) is NULL, so musb_start_urb will Oops. [ balbi@ti.com : practically rewrote commit log so it makes sense ] Signed-off-by: mayuzheng Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed