android_kernel_xiaomi_sm7250/drivers/gpu/drm/qxl
Colin Ian King 8dc74a8bbc drm: qxl: ensure surf.data is ininitialized
[ Upstream commit fbbf23ddb2a1cc0c12c9f78237d1561c24006f50 ]

The object surf is not fully initialized and the uninitialized
field surf.data is being copied by the call to qxl_bo_create
via the call to qxl_gem_object_create. Set surf.data to zero
to ensure garbage data from the stack is not being copied.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: f64122c1f6 ("drm: add new QXL driver. (v1.4)")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210608161313.161922-1-colin.king@canonical.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:15:49 +02:00
..
Kconfig
Makefile
qxl_cmd.c
qxl_debugfs.c
qxl_dev.h
qxl_display.c
qxl_draw.c
qxl_drv.c
qxl_drv.h
qxl_dumb.c
qxl_fb.c
qxl_gem.c
qxl_image.c
qxl_ioctl.c
qxl_irq.c
qxl_kms.c
qxl_object.c
qxl_object.h
qxl_prime.c
qxl_release.c
qxl_ttm.c