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

Commit 407df293 authored by Roel Kluin's avatar Roel Kluin Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: dvb: return -ENOMEM if kzalloc failed in dvb_usb_device_init()



If in a cold state and the download succeeded ret is zero, but we
should return -ENOMEM.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ca39d84d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ int dvb_usb_device_init(struct usb_interface *intf,
		d = kzalloc(sizeof(struct dvb_usb_device),GFP_KERNEL);
	if (d == NULL) {
		err("no memory for 'struct dvb_usb_device'");
		return ret;
		return -ENOMEM;
	}

	d->udev = udev;