Skip to content

Commit 4db1cb1

Browse files
author
Thomas Zimmermann
committed
Merge remote-tracking branch 'drm-misc/drm-misc-next-fixes' into drm-misc-fixes
Picking up left-over patches in drm-misc-next-fixes.
2 parents 1e7b581 + 34bd46b commit 4db1cb1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

drivers/gpu/drm/qxl/qxl_ttm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void qxl_bo_move_notify(struct ttm_buffer_object *bo,
127127
struct qxl_bo *qbo;
128128
struct qxl_device *qdev;
129129

130-
if (!qxl_ttm_bo_is_qxl_bo(bo))
130+
if (!qxl_ttm_bo_is_qxl_bo(bo) || !bo->resource)
131131
return;
132132
qbo = to_qxl_bo(bo);
133133
qdev = to_qxl(qbo->tbo.base.dev);

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <drm/drm_ioctl.h>
3737
#include <drm/drm_sysfs.h>
3838
#include <drm/ttm/ttm_bo_driver.h>
39+
#include <drm/ttm/ttm_range_manager.h>
3940
#include <drm/ttm/ttm_placement.h>
4041
#include <generated/utsrelease.h>
4142

drivers/gpu/drm/vmwgfx/vmwgfx_mob.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ static void vmw_otable_batch_takedown(struct vmw_private *dev_priv,
354354
ttm_bo_unpin(bo);
355355
ttm_bo_unreserve(bo);
356356

357-
ttm_bo_unpin(batch->otable_bo);
358357
ttm_bo_put(batch->otable_bo);
359358
batch->otable_bo = NULL;
360359
}

0 commit comments

Comments
 (0)