diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-03-11 03:27:22 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-11 09:19:35 -0800 |
commit | 16afe814a856e271628c5dfb4abbc318ec6b6f5f (patch) | |
tree | 9a5e48fb3674c07b2b9402d81183f8cf35bf1a0d /drivers/video/kyro/STG4000VTG.c | |
parent | 604cc999fda36d6ff840e03dbc70244d2d17eee2 (diff) | |
download | linux-16afe814a856e271628c5dfb4abbc318ec6b6f5f.tar.bz2 |
[PATCH] kyrofb: Fix uninitialized value
Initialize Variable 'count' in DisableVGA to zero.
Coverity Bug 874
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/kyro/STG4000VTG.c')
-rw-r--r-- | drivers/video/kyro/STG4000VTG.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |