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

Commit b905de30 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (11131): cx231xx: avoid trying to access unfilled dev struct



cx231xxinfo needs dev->name. However, this is not declared on the time the
check for the max number of supported devices is done.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 92fcbd3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -567,7 +567,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
		cx231xx_devused |= 1 << nr;

		if (nr >= CX231XX_MAXBOARDS) {
			cx231xx_info(": Supports only %i cx231xx boards.\n",
			cx231xx_err(DRIVER_NAME ": Supports only %i cx231xx boards.\n",
				     CX231XX_MAXBOARDS);
			cx231xx_devused &= ~(1 << nr);
			return -ENOMEM;