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

Commit 76c7d18b authored by Thomas Hellstrom's avatar Thomas Hellstrom
Browse files

drm/vmwgfx: Don't commit staged bindings if execbuf fails



If execbuf fails and binding commands are never sent to the device,
don't commit the staged context bindings to the tracker.

Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarJakob Bornecrantz <jakob@vmware.com>
parent ef64cf9d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -114,8 +114,10 @@ static void vmw_resource_list_unreserve(struct list_head *list,
		 * persistent context binding tracker.
		 */
		if (unlikely(val->staged_bindings)) {
			if (!backoff) {
				vmw_context_binding_state_transfer
					(val->res, val->staged_bindings);
			}
			kfree(val->staged_bindings);
			val->staged_bindings = NULL;
		}