From: Mauro Carvalho Chehab Date: Sun, 22 Mar 2009 08:46:36 +0000 (-0300) Subject: V4L/DVB (11131): cx231xx: avoid trying to access unfilled dev struct X-Git-Tag: MMI-PSA29.97-13-9~28704^2~77 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b905de30e300b959ea89c3af9d436e7f73e9e628;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 096d007efd4a..1416101672a8 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c @@ -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;