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

Commit 4624f8d7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: fix to not allow NAT DMA command without device initialization"

parents 57116e14 5245a885
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1264,6 +1264,11 @@ int ipa3_table_dma_cmd(struct ipa_ioc_nat_dma_cmd *dma)
		goto bail;
	}

	if (!ipa3_ctx->nat_mem.dev.is_dev_init) {
		IPAERR_RL("NAT hasn't been initialized\n");
		return -EPERM;
	}

	for (cnt = 0; cnt < dma->entries; ++cnt) {
		result = ipa3_table_validate_table_dma_one(&dma->dma[cnt]);
		if (result) {