diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-14 17:24:57 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-14 17:24:57 -0300 |
commit | 4e7fa67f9425ac245c59066b79f5e6053594f334 (patch) | |
tree | d059776227d549f35ad197f125b4c67bfddd8190 /linux/drivers/media/video/em28xx | |
parent | 1a46c12cbc4e67500f23ed0d328933acdee54cdb (diff) | |
download | mediapointer-dvb-s2-4e7fa67f9425ac245c59066b79f5e6053594f334.tar.gz mediapointer-dvb-s2-4e7fa67f9425ac245c59066b79f5e6053594f334.tar.bz2 |
Fix a bug when more than MAXBOARDS were plugged on em28xx
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Coverity reported a bug at checking max number of supported boards by
em28xx init code.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/em28xx')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c index 1dea158e7..cfae6f999 100644 --- a/linux/drivers/media/video/em28xx/em28xx-video.c +++ b/linux/drivers/media/video/em28xx/em28xx-video.c @@ -2107,7 +2107,7 @@ static int em28xx_usb_probe(struct usb_interface *interface, model=id->driver_info; - if (nr > EM28XX_MAXBOARDS) { + if (nr >= EM28XX_MAXBOARDS) { printk (DRIVER_NAME ": Supports only %i em28xx boards.\n",EM28XX_MAXBOARDS); em28xx_devused&=~(1<<nr); return -ENOMEM; |