projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1095136
)
V4L/DVB (3964): Bt8xx/bttv-cards.c: fix off-by-one errors
author
Adrian Bunk
<bunk@stusta.de>
Fri, 28 Apr 2006 13:48:41 +0000
(10:48 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Fri, 12 May 2006 22:55:23 +0000
(19:55 -0300)
This patch fixes two off-by-one errors spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt8xx/bttv-cards.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/bt8xx/bttv-cards.c
b/drivers/media/video/bt8xx/bttv-cards.c
index f209a749205104af0fb8276373d71c7b150bad32..2b64aa835b423663a203685b6c95a9fc94348fef 100644
(file)
--- a/
drivers/media/video/bt8xx/bttv-cards.c
+++ b/
drivers/media/video/bt8xx/bttv-cards.c
@@
-2991,13
+2991,13
@@
void __devinit bttv_idcard(struct bttv *btv)
if (UNSET != audiomux[0]) {
gpiobits = 0;
- for (i = 0; i <
5
; i++) {
+ for (i = 0; i <
4
; i++) {
bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i];
gpiobits |= audiomux[i];
}
} else {
gpiobits = audioall;
- for (i = 0; i <
5
; i++) {
+ for (i = 0; i <
4
; i++) {
bttv_tvcards[btv->c.type].gpiomux[i] = audioall;
}
}