summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-14 18:55:39 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-14 18:55:39 -0300
commit49c7ae95a0e651f7e2186509d62e7eb21ff6154c (patch)
treee3eb7ee9b5f9d8341a1c4b2c0dc5f135f59b6ef6 /linux/drivers/media/video
parent088d748ee46301d439b389131fd3971e47a4555b (diff)
parent93d4ff1bf42268c291a14a04c34d700189f42a27 (diff)
downloadmediapointer-dvb-s2-49c7ae95a0e651f7e2186509d62e7eb21ff6154c.tar.gz
mediapointer-dvb-s2-49c7ae95a0e651f7e2186509d62e7eb21ff6154c.tar.bz2
Merging mkrufky tree
From: Mauro Carvalho Chehab <mchehab@infradead.org> merge: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-video.c2
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;