Browse Source

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 <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Thomas Hellstrom 8 years ago
parent
commit
8cd9f25147
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

+ 1 - 1
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)
 				   struct vmw_surface **srf_out)
 {
 {
 	uint32_t format;
 	uint32_t format;
-	struct drm_vmw_size content_base_size;
+	struct drm_vmw_size content_base_size = {0};
 	struct vmw_resource *res;
 	struct vmw_resource *res;
 	unsigned int bytes_pp;
 	unsigned int bytes_pp;
 	struct drm_format_name_buf format_name;
 	struct drm_format_name_buf format_name;