提交 7e4b9187 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

[media] cx231xx: use after free on error path in probe

We dereference "dev" after it has already been freed.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 89f4d45b
......@@ -1412,8 +1412,8 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
usb_set_intfdata(interface, NULL);
err_if:
usb_put_dev(udev);
kfree(dev);
clear_bit(dev->devno, &cx231xx_devused);
kfree(dev);
return retval;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册