Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b90ed1e9 authored by Dave Airlie's avatar Dave Airlie
Browse files

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: default avatarDave Airlie <airlied@redhat.com>
parent b2b4465d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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))