summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 11:09:50 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-13 22:44:05 (GMT)
commit485707116b3949ab41e1aba8d74f45a7551e3a65 (patch)
treeb78a9ca59b2c2e930d61f96d94194ee66811fdc8 /drivers/usb/serial/option.c
parent9ab7927bb845cf2549110b19c212fe44a2bfbacb (diff)
downloadlinux-485707116b3949ab41e1aba8d74f45a7551e3a65.tar.xz
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 <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/option.c')
0 files changed, 0 insertions, 0 deletions