usb: pch_udc: unlock on allocation failure
authorDan Carpenter <error27@gmail.com>
Sun, 20 Mar 2011 11:09:50 +0000 (14:09 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 22:44:05 +0000 (15:44 -0700)
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 <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found