Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46c9844c authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

USB: misc/adutux, fix lock imbalance



Don't unlock adutux_mutex when not held.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 909b6c3f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ static int adu_release(struct inode *inode, struct file *file)
	if (dev->open_count <= 0) {
		dbg(1," %s : device not opened", __func__);
		retval = -ENODEV;
		goto exit;
		goto unlock;
	}

	adu_release_internal(dev);
@@ -385,9 +385,9 @@ static int adu_release(struct inode *inode, struct file *file)
		if (!dev->open_count)	/* ... and we're the last user */
			adu_delete(dev);
	}

exit:
unlock:
	mutex_unlock(&adutux_mutex);
exit:
	dbg(2," %s : leave, return value %d", __func__, retval);
	return retval;
}