Merge "msm: ipa3: fix to cleanup the dma allocation."
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
ce18425612
@@ -360,6 +360,11 @@ int __ipa_commit_hdr_v3_0(void)
|
|||||||
ipa3_ctx->hdr_sys_mem = hdr_mem[HDR_TBL_SYS];
|
ipa3_ctx->hdr_sys_mem = hdr_mem[HDR_TBL_SYS];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
dma_free_coherent(ipa3_ctx->pdev, hdr_mem[HDR_TBL_SYS].size,
|
||||||
|
hdr_mem[HDR_TBL_SYS].base,hdr_mem[HDR_TBL_SYS].phys_base);
|
||||||
|
}
|
||||||
|
|
||||||
if (ipa3_ctx->hdr_proc_ctx_tbl_lcl) {
|
if (ipa3_ctx->hdr_proc_ctx_tbl_lcl) {
|
||||||
dma_free_coherent(ipa3_ctx->pdev, ctx_mem.size, ctx_mem.base,
|
dma_free_coherent(ipa3_ctx->pdev, ctx_mem.size, ctx_mem.base,
|
||||||
ctx_mem.phys_base);
|
ctx_mem.phys_base);
|
||||||
@@ -372,6 +377,10 @@ int __ipa_commit_hdr_v3_0(void)
|
|||||||
ipa3_ctx->hdr_proc_ctx_mem.phys_base);
|
ipa3_ctx->hdr_proc_ctx_mem.phys_base);
|
||||||
ipa3_ctx->hdr_proc_ctx_mem = ctx_mem;
|
ipa3_ctx->hdr_proc_ctx_mem = ctx_mem;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
dma_free_coherent(ipa3_ctx->pdev, ctx_mem.size,
|
||||||
|
ctx_mem.base,ctx_mem.phys_base);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user