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

Commit 19028690 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

USB: fix pm counter leak in usblp



if you fail in open() you must decrement the pm counter again.

Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
parent 2129c4e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -428,6 +428,7 @@ static int usblp_open(struct inode *inode, struct file *file)
	usblp->rcomplete = 0;

	if (handle_bidir(usblp) < 0) {
		usb_autopm_put_interface(intf);
		usblp->used = 0;
		file->private_data = NULL;
		retval = -EIO;