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

Commit 2c1a3c97 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10229): ivtv: fix memory leak

parent 2fd9c2ea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -949,8 +949,10 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
	itv->instance = atomic_inc_return(&ivtv_instance) - 1;

	retval = v4l2_device_register(&dev->dev, &itv->device);
	if (retval)
	if (retval) {
		kfree(itv);
		return retval;
	}
	/* "ivtv + PCI ID" is a bit of a mouthful, so use
	   "ivtv + instance" instead. */
	snprintf(itv->device.name, sizeof(itv->device.name),