Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99ca9991 authored by Duncan Sands's avatar Duncan Sands Committed by Linus Torvalds
Browse files

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: default avatarDuncan Sands <baldrick@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent efcf55cb
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -276,6 +276,8 @@ bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc,
		if (line > maxy)
		if (line > maxy)
			btcx_calc_skips(line, ov->w.width, &maxy,
			btcx_calc_skips(line, ov->w.width, &maxy,
					skips, &nskips, ov->clips, ov->nclips);
					skips, &nskips, ov->clips, ov->nclips);
		else
			nskips = 0;


		/* write out risc code */
		/* write out risc code */
		for (start = 0, skip = 0; start < ov->w.width; start = end) {
		for (start = 0, skip = 0; start < ov->w.width; start = end) {