Unlock the spin lock when returning from error patch.

Patch is against 2.6.19

Signed-off-by:Milan Svoboda <[EMAIL PROTECTED]>
---
diff -uprN orig/drivers/usb/gadget/inode.c nn/drivers/usb/gadget/inode.c
--- orig/drivers/usb/gadget/inode.c     2006-11-27 12:27:20.000000000 +0000
+++ nn/drivers/usb/gadget/inode.c       2006-12-15 08:39:42.000000000 +0000
@@ -1401,6 +1401,7 @@ gadgetfs_setup (struct usb_gadget *gadge
 
 #ifdef CONFIG_USB_GADGET_DUALSPEED
                if (gadget->speed == USB_SPEED_HIGH && dev->hs_config == 0) {
+                       spin_unlock (&dev->lock);
                        ERROR (dev, "no high speed config??\n");
                        return -EINVAL;
                }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to