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

Commit a064fad3 authored by Andrew de Quincey's avatar Andrew de Quincey Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (3743): Fix some more potential oopses



Spotted a couple more places where it fails to check if
dvb_register_adapter() fails.

Signed-off-by: default avatarAndrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 64454016
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -902,7 +902,10 @@ static int cinergyt2_probe (struct usb_interface *intf,
		return -ENOMEM;
	}

	dvb_register_adapter(&cinergyt2->adapter, DRIVER_NAME, THIS_MODULE);
	if ((err = dvb_register_adapter(&cinergyt2->adapter, DRIVER_NAME, THIS_MODULE)) < 0) {
		kfree(cinergyt2);
		return err;
	}

	cinergyt2->demux.priv = cinergyt2;
	cinergyt2->demux.filternum = 256;
+5 −1
Original line number Diff line number Diff line
@@ -1507,7 +1507,11 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i

	mutex_unlock(&ttusb->semi2c);

	dvb_register_adapter(&ttusb->adapter, "Technotrend/Hauppauge Nova-USB", THIS_MODULE);
	if ((result = dvb_register_adapter(&ttusb->adapter, "Technotrend/Hauppauge Nova-USB", THIS_MODULE)) < 0) {
		ttusb_free_iso_urbs(ttusb);
		kfree(ttusb);
		return result;
	}
	ttusb->adapter.priv = ttusb;

	/* i2c */