From: Dan Carpenter Date: Sun, 20 Mar 2011 11:09:50 +0000 (+0300) Subject: usb: pch_udc: unlock on allocation failure X-Git-Tag: v2.6.39-rc4~16^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485707116b3949ab41e1aba8d74f45a7551e3a65;p=pandora-kernel.git usb: pch_udc: unlock on allocation failure There was an unlock missing on the error path. Also I did a small cleanup by changing ep->dev->lock for just dev->lock. They're the same lock, but dev->lock is shorter and that's how it is used for the spin_unlock_irqrestore() call. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed