linux-uconsole/drivers/gpu/drm/qxl
Colin Ian King 1ccbb552e3 drm: qxl: ensure surf.data is ininitialized
[ Upstream commit fbbf23ddb2 ]

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-14 16:56:20 +02:00
..
Kconfig
Makefile
qxl_cmd.c drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_debugfs.c
qxl_dev.h PCI: Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h 2020-07-09 17:00:47 -05:00
qxl_display.c drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_draw.c drm/qxl: qxl_release use after free 2020-04-29 13:21:34 +02:00
qxl_drv.c Revert "drm/qxl: do not run release if qxl failed to init" 2021-05-14 09:50:05 +02:00
qxl_drv.h drm/ttm: rename ttm_mem_reg to ttm_resource. 2020-08-06 13:19:21 +10:00
qxl_dumb.c drm: qxl: ensure surf.data is ininitialized 2021-07-14 16:56:20 +02:00
qxl_gem.c drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_image.c drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper() 2020-04-29 13:21:34 +02:00
qxl_ioctl.c qxl/ttm: drop the unusued no wait flag to reserve function 2020-08-06 12:16:29 +10:00
qxl_irq.c
qxl_kms.c drm/qxl: don't use ttm bo->offset 2020-06-25 11:59:02 +02:00
qxl_object.c drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_object.h drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_prime.c
qxl_release.c drm/qxl: use ttm bo priorities 2021-05-14 09:50:00 +02:00
qxl_ttm.c drm/ttm: flip tt destroy ordering. 2020-09-18 06:14:41 +10:00