Messages in this thread Patch in this message | | | From | mchehab@infradea ... | Subject | [PATCH 01/21] Nskips maybe used uninitialized in bttv_risc_overlay | Date | Fri, 17 Mar 2006 17:54:32 -0300 |
| |
From: Duncan Sands <baldrick@free.fr> Date: 1141914014 \-0300
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> ---
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 b40e973..af66a8d 100644 --- a/drivers/media/video/bttv-risc.c +++ b/drivers/media/video/bttv-risc.c @@ -274,6 +274,8 @@ bttv_risc_overlay(struct bttv *btv, stru 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) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |