]> git.baikalelectronics.ru Git - kernel.git/commit
drm: qxl: ensure surf.data is ininitialized
authorColin Ian King <colin.king@canonical.com>
Tue, 8 Jun 2021 16:13:13 +0000 (17:13 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 9 Jun 2021 06:52:07 +0000 (08:52 +0200)
commitca125660c604c0c8f525f8545fbb1ff8d7850937
tree0cfdc8ae7d414a7f8e1de63c74b3566162d63be9
parent29717eef4689d01b115387d82776bb36689ca419
drm: qxl: ensure surf.data is ininitialized

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: 64209f3ffc9f ("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>
drivers/gpu/drm/qxl/qxl_dumb.c