提交 19028690 编写于 作者: O Oliver Neukum 提交者: Greg Kroah-Hartman

USB: fix pm counter leak in usblp

if you fail in open() you must decrement the pm counter again.
Signed-off-by: NOliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
上级 2129c4e1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册