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

Commit 0208843d authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau: fix failure path if userspace specifies no valid memtypes



We need to add the buffer to the list even if we fail, otherwise the
validate_fini() call won't unreserve + unreference the GEM object,
making TTM very unhappy.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent a1470890
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -321,6 +321,7 @@ retry:
		else {
			NV_ERROR(dev, "invalid valid domains: 0x%08x\n",
				 b->valid_domains);
			list_add_tail(&nvbo->entry, &op->both_list);
			validate_fini(op, NULL);
			return -EINVAL;
		}