[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:
Dan Carpenter 2013-11-01 07:34:40 -03:00 committed by Mauro Carvalho Chehab
parent 89f4d45b27
commit 7e4b918750
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}