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

Commit 2777cb58 authored by Anish Kumar's avatar Anish Kumar
Browse files

ASoC: msm: qdsp6v2: Fix ion_import failure



When ion_import_legacy api fails,we should not
destory the client instead just bail out.

CRs-Fixed: 620370
Signed-off-by: default avatarAnish Kumar <kanish@codeaurora.org>
Change-Id: Icbcf4dadd5f00e1cf4d7a356ee1c0f5835dcb4c4
parent db9318e3
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ int msm_audio_ion_import_legacy(const char *name, struct ion_client *client,
		pr_err("%s: ion import dma buffer failed\n",
			__func__);
		rc = -EINVAL;
		goto err_destroy_client;
		goto err;
	}

	if (ionflag != NULL) {
@@ -388,10 +388,6 @@ int msm_audio_ion_import_legacy(const char *name, struct ion_client *client,

err_ion_handle:
	ion_free(client, *handle);
err_destroy_client:
	msm_audio_ion_client_destroy(client);
	client = NULL;
	*handle = NULL;
err:
	return rc;
}