mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge "msm: ipa: fix to not allow NAT DMA command without device initialization"
This commit is contained in:
commit
4624f8d739
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user