V4L/DVB (11131): cx231xx: avoid trying to access unfilled dev struct
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 22 Mar 2009 08:46:36 +0000 (05:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:08 +0000 (21:44 -0300)
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: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-cards.c

index 096d007efd4a9ce9a9041068f45f1796bf103d06..1416101672a85c2ef6e86f41b9e1322becd4f32d 100644 (file)
@@ -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;