Skip to content

Commit

Permalink
drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()
Browse files Browse the repository at this point in the history
v2: removed TODO reminder

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Link: http://patchwork.freedesktop.org/patch/msgid/a4e0ae09-a73c-1c62-04ef-3f990d41bea9@virtuozzo.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
Vasily Averin authored and Gerd Hoffmann committed Apr 29, 2020
1 parent a65aa9c commit 5b5703d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/qxl/qxl_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ qxl_image_init_helper(struct qxl_device *qdev,
break;
default:
DRM_ERROR("unsupported image bit depth\n");
return -EINVAL; /* TODO: cleanup */
qxl_bo_kunmap_atomic_page(qdev, image_bo, ptr);
return -EINVAL;
}
image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN;
image->u.bitmap.x = width;
Expand Down

0 comments on commit 5b5703d

Please sign in to comment.