aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-14 17:24:57 -0300
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-21 08:53:26 -0800
commit19478843e4f8af7de9b297876519ee8b98c2f5ad (patch)
tree3ba0739399f7acbdc5a96d46bff9f6b17c1c520c /drivers/media/video/em28xx
parentV4L/DVB (3497): Remove redundant makefile inclusion of tuner.o (diff)
downloadlinux-dev-19478843e4f8af7de9b297876519ee8b98c2f5ad.tar.xz
linux-dev-19478843e4f8af7de9b297876519ee8b98c2f5ad.zip
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 <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c2
1 files changed, 1 insertions, 1 deletions
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<<nr);
return -ENOMEM;