Skip to content

Commit 5b5703d

Browse files
vaverinkraxel
authored andcommitted
drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()
v2: removed TODO reminder Signed-off-by: Vasily Averin <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent a65aa9c commit 5b5703d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/qxl/qxl_image.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ qxl_image_init_helper(struct qxl_device *qdev,
212212
break;
213213
default:
214214
DRM_ERROR("unsupported image bit depth\n");
215-
return -EINVAL; /* TODO: cleanup */
215+
qxl_bo_kunmap_atomic_page(qdev, image_bo, ptr);
216+
return -EINVAL;
216217
}
217218
image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN;
218219
image->u.bitmap.x = width;

0 commit comments

Comments
 (0)