Commit e5c8dbb8 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Dave Airlie
Browse files

vmwgfx: Unreference surface on cursor error path

Signed-off-by: default avatarJakob Bornecrantz <>
Reviewed-by: default avatarThomas Hellstrom <>
Signed-off-by: default avatarDave Airlie <>
parent 55bde5b2
......@@ -111,6 +111,7 @@ int vmw_du_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
if (!ret) {
if (!surface->snooper.image) {
DRM_ERROR("surface not suitable for cursor\n");
return -EINVAL;
} else {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment