From: Mauro Carvalho Chehab Date: Tue, 14 Mar 2006 20:24:57 +0000 (-0300) Subject: V4L/DVB (3499): Fix a bug when more than MAXBOARDS were plugged on em28xx X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=19478843e4f8af7de9b297876519ee8b98c2f5ad;p=linux-beck.git V4L/DVB (3499): Fix a bug when more than MAXBOARDS were plugged on em28xx Coverity reported a bug at checking max number of supported boards by em28xx init code. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index f56ae4852165..78f0f7a706ea 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c @@ -1949,7 +1949,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<