diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-01-19 19:58:52 +0100 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-01-27 05:52:36 +0100 |
commit | 0fd67c1cb80231ff18633d5a22f56efe1f6ee917 (patch) | |
tree | df2780aed53d5ab3bddc0ae505d48a79794fd809 /drivers/gpu | |
parent | drm/vmwgfx: Annotate ignored return values (diff) | |
download | linux-0fd67c1cb80231ff18633d5a22f56efe1f6ee917.tar.xz linux-0fd67c1cb80231ff18633d5a22f56efe1f6ee917.zip |
drm/vmwgfx: Clear an uninitialized struct member
The uninitialized bug unused member confused coverity.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h b/drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h index 531d22025fec..babe7cb84fc2 100644 --- a/drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h +++ b/drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h @@ -980,6 +980,8 @@ svga3dsurface_get_mip_size(surf_size_struct base_level, u32 mip_level) size.width = max_t(u32, base_level.width >> mip_level, 1); size.height = max_t(u32, base_level.height >> mip_level, 1); size.depth = max_t(u32, base_level.depth >> mip_level, 1); + size.pad64 = 0; + return size; } |