From: Thomas Hellstrom Date: Thu, 19 Jan 2017 18:53:02 +0000 (-0800) Subject: drm/vmwgfx: Clear uninitialized fields of a parameter X-Git-Tag: v4.11-rc1~83^2~30^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8cd9f2514711019c0a5f99b8c8547d255d85c3f0;p=thirdparty%2Fkernel%2Flinux.git drm/vmwgfx: Clear uninitialized fields of a parameter The uninitialized field is not currently used, but might be in the future, and static analyzers complain. Signed-off-by: Thomas Hellstrom Reviewed-by: Sinclair Yeh Reviewed-by: Charmaine Lee --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index cf22110e9eee3..7d3cb7824fa13 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -757,7 +757,7 @@ static int vmw_create_dmabuf_proxy(struct drm_device *dev, struct vmw_surface **srf_out) { uint32_t format; - struct drm_vmw_size content_base_size; + struct drm_vmw_size content_base_size = {0}; struct vmw_resource *res; unsigned int bytes_pp; struct drm_format_name_buf format_name;