diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-22 05:46:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-22 05:46:36 -0300 |
commit | ad50b0ea773765f3e80aec5fb66b59aa2bc404f2 (patch) | |
tree | 4571855175776a04e6176e59cd4de63560cfd9f8 /linux | |
parent | a20d311c162fb0c2c6d5fc499852211e8936054d (diff) | |
download | mediapointer-dvb-s2-ad50b0ea773765f3e80aec5fb66b59aa2bc404f2.tar.gz mediapointer-dvb-s2-ad50b0ea773765f3e80aec5fb66b59aa2bc404f2.tar.bz2 |
cx231xx: avoid trying to access unfilled dev struct
From: Mauro Carvalho Chehab <mchehab@redhat.com>
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 'linux')
-rw-r--r-- | linux/drivers/media/video/cx231xx/cx231xx-cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx231xx/cx231xx-cards.c b/linux/drivers/media/video/cx231xx/cx231xx-cards.c index 31c9c93bd..e7d6633d2 100644 --- a/linux/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/linux/drivers/media/video/cx231xx/cx231xx-cards.c @@ -578,7 +578,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; |