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

This commit is contained in:
qctecmdr Service 2018-05-26 14:59:44 -07:00 committed by Gerrit - the friendly Code Review server
commit 4624f8d739

View File

@ -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) {