drm/vmwgfx: Clear uninitialized fields of a parameter
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 19 Jan 2017 18:53:02 +0000 (10:53 -0800)
committerSinclair Yeh <syeh@vmware.com>
Fri, 27 Jan 2017 04:52:17 +0000 (20:52 -0800)
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>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

index cf22110e9eee3126e65f420d32b333449a16819e..7d3cb7824fa136bcee333506eaefcb095eb07ffb 100644 (file)
@@ -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;