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

Commit cebb2242 authored by Skylar Chang's avatar Skylar Chang Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: return error on channel setup failure



Return the correct error code when channel setup fails due
to memory allocation.

Change-Id: If345299532f8d04a543e3c7e535d4a7987661d0e
CRs-Fixed: 2028360
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent c128d06e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3944,6 +3944,7 @@ static int ipa_gsi_setup_channel(struct ipa_sys_connect_params *in,
	if (!gsi_channel_props.ring_base_vaddr) {
		IPAERR("fail to dma alloc %u bytes\n",
			gsi_channel_props.ring_len);
		result = -ENOMEM;
		goto fail_alloc_channel_ring;
	}
	gsi_channel_props.ring_base_addr = dma_addr;