From: Antonino A. Daplas Date: Sat, 11 Mar 2006 11:27:22 +0000 (-0800) Subject: [PATCH] kyrofb: Fix uninitialized value X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=16afe814a856e271628c5dfb4abbc318ec6b6f5f;p=deliverable%2Flinux.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 3690b04190af..bd389709d234 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);