diff options
author | Duncan Sands <baldrick@free.fr> | 2006-03-09 11:20:14 -0300 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 08:52:56 -0800 |
commit | 99ca99915068806552d1f90ce50bed4c7387d65a (patch) | |
tree | 24fbe348f28d65c215f7ed9c37ff49c909d0578a | |
parent | efcf55cb5c21d7142aeb1a5a4c14e40960600bd6 (diff) | |
download | op-kernel-dev-99ca99915068806552d1f90ce50bed4c7387d65a.zip op-kernel-dev-99ca99915068806552d1f90ce50bed4c7387d65a.tar.gz |
V4L/DVB (3420): Nskips maybe used uninitialized in bttv_risc_overlay
The Coverity checker (previously Stanford checker) noticed that
the value of nskips could be read even if it was never written.
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/bttv-risc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/bttv-risc.c b/drivers/media/video/bttv-risc.c index a60c211..5c74611 100644 --- a/drivers/media/video/bttv-risc.c +++ b/drivers/media/video/bttv-risc.c @@ -276,6 +276,8 @@ bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, if (line > maxy) btcx_calc_skips(line, ov->w.width, &maxy, skips, &nskips, ov->clips, ov->nclips); + else + nskips = 0; /* write out risc code */ for (start = 0, skip = 0; start < ov->w.width; start = end) { |