From: Anton Vorontsov Date: Thu, 25 Dec 2008 14:15:05 +0000 (+0300) Subject: USB: fsl_qe_udc: Fix recursive locking bug in ch9getstatus() X-Git-Tag: v2.6.29-rc5~45^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a30551db66afa1b53a4fa7ceadddb7122bdcf491;p=pandora-kernel.git USB: fsl_qe_udc: Fix recursive locking bug in ch9getstatus() The call chain is this: qe_udc_irq() <- grabs the udc->lock spinlock rx_irq() qe_ep0_rx() ep0_setup_handle() setup_received_handle() ch9getstatus() qe_ep_queue() <- tries to grab the udc->lock again It seems unsafe to temporarily drop the lock in the ch9getstatus(), so to fix that bug the lock-less __qe_ep_queue() function implemented and used by the ch9getstatus(). Signed-off-by: Anton Vorontsov Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed