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

Commit 90052e3a authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

qcom: scm-pas: Make a call to scm_pas_disable_bw when DMA allocation fails



When the call to allocate DMA memory from init_image fails,
relinquish the requested bandwidth and disable the scm clocks
before returning.

Change-Id: I194909ec8a3f563a79287bd16a9af73a69c2cd39
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 7edbae3d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ int pas_init_image(enum pas_id id, const u8 *metadata, size_t size)
					&attrs);
	if (!mdata_buf) {
		pr_err("Allocation for metadata failed.\n");
		scm_pas_disable_bw();
		return -ENOMEM;
	}