LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] drivers/media/video/bt8xx/bttv-cards.c: fix off-by-one
@ 2007-03-26  4:08 Adrian Bunk
  2007-03-29 12:08 ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-03-26  4:08 UTC (permalink / raw)
  To: mchehab; +Cc: v4l-dvb-maintainer, linux-kernel

This patch fixes an off-by-one error spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
--- linux-2.6.21-rc4-mm1/drivers/media/video/bt8xx/bttv-cards.c.old	2007-03-26 00:00:07.000000000 +0200
+++ linux-2.6.21-rc4-mm1/drivers/media/video/bt8xx/bttv-cards.c	2007-03-26 00:00:55.000000000 +0200
@@ -2983,7 +2983,7 @@
 	bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits;
 	printk(KERN_INFO "bttv%d: gpio config override: mask=0x%x, mux=",
 	       btv->c.nr,bttv_tvcards[btv->c.type].gpiomask);
-	for (i = 0; i < 5; i++) {
+	for (i = 0; i < 4; i++) {
 		printk("%s0x%x", i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]);
 	}
 	printk("\n");


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-29 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26  4:08 [2.6 patch] drivers/media/video/bt8xx/bttv-cards.c: fix off-by-one Adrian Bunk
2007-03-29 12:08 ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).