]> git.baikalelectronics.ru Git - kernel.git/commit
qxl: Fix uninitialised struct field head.surface_id
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Mar 2021 09:49:28 +0000 (09:49 +0000)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 11 Mar 2021 10:11:33 +0000 (11:11 +0100)
commit69da096132e2c26a11141bf42a43fb0ca54712c9
treeb4f35931f034561141130a9058b432efc4380e86
parentd93f6826bb1f6072564c597b549094d297973f5b
qxl: Fix uninitialised struct field head.surface_id

The surface_id struct field in head is not being initialized and
static analysis warns that this is being passed through to
dev->monitors_config->heads[i] on an assignment. Clear up this
warning by initializing it to zero.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 103d95eac134 ("qxl: hook monitors_config updates into crtc, not encoder.")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210304094928.2280722-1-colin.king@canonical.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/qxl/qxl_display.c