From: Thomas Hellstrom Date: Thu, 19 Jan 2017 18:58:52 +0000 (-0800) Subject: drm/vmwgfx: Clear an uninitialized struct member X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fd67c1cb80231ff18633d5a22f56efe1f6ee917;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/vmwgfx: Clear an uninitialized struct member The uninitialized bug unused member confused coverity. Signed-off-by: Thomas Hellstrom Reviewed-by: Charmaine Lee Reviewed-by: Sinclair Yeh --- 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; }