Skip to content

Commit

Permalink
V4L/DVB (3420): Nskips maybe used uninitialized in bttv_risc_overlay
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Duncan Sands authored and Linus Torvalds committed Mar 21, 2006
1 parent efcf55c commit 99ca999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/bttv-risc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 99ca999

Please sign in to comment.