mirror of https://gitee.com/openkylin/linux.git
[media] cx231xx: use after free on error path in probe
We dereference "dev" after it has already been freed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
89f4d45b27
commit
7e4b918750
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue