author: Colin Ian King <colin.king@canonical.com> 2021-06-08 17:13:13 +0100
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:07:03 +0200
commit: 6be3f2d04fbe4eed404181a07f387da1a3062f43
parent: 296031d154af2b70e8c56e5b4f5811c4e6e47b7f
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_dumb.c
index 48a58ba1db96..686485b19d0f 100644
--- a/drivers/gpu/drm/qxl/qxl_dumb.c
+++ b/drivers/gpu/drm/qxl/qxl_dumb.c
@@ -58,6 +58,8 @@ int qxl_mode_dumb_create(struct drm_file *file_priv,
surf.height = args->height;
surf.stride = pitch;
surf.format = format;
+ surf.data = 0;
+
r = qxl_gem_object_create_with_handle(qdev, file_priv,
QXL_GEM_DOMAIN_CPU,
args->size, &surf, &qobj,