From: Antonino A. Daplas Date: Sat, 11 Mar 2006 11:27:22 +0000 (-0800) Subject: [PATCH] kyrofb: Fix uninitialized value X-Git-Tag: v2.6.16-rc6~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=16afe814a856e271628c5dfb4abbc318ec6b6f5f;p=linux-2.6-omap-h63xx.git [PATCH] kyrofb: Fix uninitialized value Initialize Variable 'count' in DisableVGA to zero. Coverity Bug 874 Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/kyro/STG4000VTG.c b/drivers/video/kyro/STG4000VTG.c index 3690b04190a..bd389709d23 100644 --- a/drivers/video/kyro/STG4000VTG.c +++ b/drivers/video/kyro/STG4000VTG.c @@ -17,7 +17,7 @@ void DisableVGA(volatile STG4000REG __iomem *pSTGReg) { u32 tmp; - volatile u32 count, i; + volatile u32 count = 0, i; /* Reset the VGA registers */ tmp = STG_READ_REG(SoftwareReset);