From: Jiri Slaby Date: Mon, 21 Jun 2010 15:02:40 +0000 (+0200) Subject: USB: gadget/printer, fix sleep inside atomic X-Git-Tag: v2.6.35-rc4~18^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10ca4425714a6115c5d865718d64874a1e1ea09a;p=pandora-kernel.git USB: gadget/printer, fix sleep inside atomic Stanse found that sleep is called inside atomic context created by lock_printer_io spinlock in several functions. It's used in process context only and some functions sleep inside its critical section. As this is not allowed for spinlocks, switch it to mutex. Signed-off-by: Jiri Slaby Cc: Craig W. Nadler Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed