diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-03-11 12:27:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-11 18:19:35 +0100 |
commit | 16afe814a856e271628c5dfb4abbc318ec6b6f5f (patch) | |
tree | 9a5e48fb3674c07b2b9402d81183f8cf35bf1a0d /drivers | |
parent | [PATCH] arcfb: Fix uninitialized value (diff) | |
download | linux-16afe814a856e271628c5dfb4abbc318ec6b6f5f.tar.xz linux-16afe814a856e271628c5dfb4abbc318ec6b6f5f.zip |
[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')
-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); |