mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
qxl: fix bug with object eviction and update area
if the surface is evicted, this validation will happen to the wrong place, I noticed this with other work I was doing, haven't seen it go wrong in practice. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b2b4465d8b
commit
b90ed1e931
1 changed files with 1 additions and 0 deletions
|
@ -294,6 +294,7 @@ static int qxl_update_area_ioctl(struct drm_device *dev, void *data,
|
|||
goto out;
|
||||
|
||||
if (!qobj->pin_count) {
|
||||
qxl_ttm_placement_from_domain(qobj, qobj->type);
|
||||
ret = ttm_bo_validate(&qobj->tbo, &qobj->placement,
|
||||
true, false);
|
||||
if (unlikely(ret))
|
||||
|
|
Loading…
Reference in a new issue