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

Commit 0163b924 authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab
Browse files

[media] drivers/media/video/zr364xx.c: add missing cleanup code



It seems just as necessary to free cam->vdev and cam in this error case as
in the next one.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e6a476fd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1638,6 +1638,9 @@ static int zr364xx_probe(struct usb_interface *intf,

	if (!cam->read_endpoint) {
		dev_err(&intf->dev, "Could not find bulk-in endpoint\n");
		video_device_release(cam->vdev);
		kfree(cam);
		cam = NULL;
		return -ENOMEM;
	}