diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-22 04:46:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:08 -0400 |
commit | b905de30e300b959ea89c3af9d436e7f73e9e628 (patch) | |
tree | 65865332575ec27117da784f199a35b3272178c0 /drivers/media/video/cx231xx | |
parent | 92fcbd3f4ea07a8efd2d2881645baae0a061c82e (diff) |
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 <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
567 | cx231xx_devused |= 1 << nr; | 567 | cx231xx_devused |= 1 << nr; |
568 | 568 | ||
569 | if (nr >= CX231XX_MAXBOARDS) { | 569 | if (nr >= CX231XX_MAXBOARDS) { |
570 | cx231xx_info(": Supports only %i cx231xx boards.\n", | 570 | cx231xx_err(DRIVER_NAME ": Supports only %i cx231xx boards.\n", |
571 | CX231XX_MAXBOARDS); | 571 | CX231XX_MAXBOARDS); |
572 | cx231xx_devused &= ~(1 << nr); | 572 | cx231xx_devused &= ~(1 << nr); |
573 | return -ENOMEM; | 573 | return -ENOMEM; |