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

Commit 65a3cf72 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: synx: fix cleanup of fence during handle creation"

parents ba3bad29 e903f12a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ int synx_create(struct synx_session session_id,
	if (rc) {
		pr_err("[sess: %u] error initializing synx obj\n",
			client->id);
		goto clean_up;
		goto clear;
	}

	rc = synx_util_init_handle(client, synx_obj, &h_synx);
@@ -180,7 +180,12 @@ int synx_create(struct synx_session session_id,
	return 0;

clean_up:
	if (!synx_util_is_external_object(synx_obj)) {
		dma_fence_remove_callback(synx_obj->fence,
			&synx_obj->fence_cb);
		dma_fence_put(synx_obj->fence);
	}
clear:
	kfree(synx_obj);
fail:
	synx_put_client(client);