From: Stefani Seibold <stefani@xxxxxxxxxxx> Signed-off-by: Stefani Seibold <stefani@xxxxxxxxxxx> --- drivers/usb/usb-skeleton.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index 0616f23..efda3a5 100644 --- a/drivers/usb/usb-skeleton.c +++ b/drivers/usb/usb-skeleton.c @@ -114,10 +114,11 @@ static int skel_open(struct inode *inode, struct file *file) retval = usb_autopm_get_interface(interface); if (retval) - goto out_err; + goto exit2; /* save our object in the file's private structure */ file->private_data = dev; +exit2: mutex_unlock(&dev->io_mutex); exit: -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html