msm: ipa: fix the double free for the queue transfer failure
Fix the double free cache for the queue transfer failure. Change-Id: Ife6abe3f4c06e6fc5c5ac15544f040d5c8cc831d Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This commit is contained in:
@@ -649,6 +649,9 @@ int ipa3_send(struct ipa3_sys_context *sys,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
failure_dma_map:
|
||||||
|
kmem_cache_free(ipa3_ctx->tx_pkt_wrapper_cache, tx_pkt);
|
||||||
|
|
||||||
failure:
|
failure:
|
||||||
ipahal_destroy_imm_cmd(tag_pyld_ret);
|
ipahal_destroy_imm_cmd(tag_pyld_ret);
|
||||||
tx_pkt = tx_pkt_first;
|
tx_pkt = tx_pkt_first;
|
||||||
@@ -673,9 +676,6 @@ failure:
|
|||||||
tx_pkt = next_pkt;
|
tx_pkt = next_pkt;
|
||||||
}
|
}
|
||||||
|
|
||||||
failure_dma_map:
|
|
||||||
kmem_cache_free(ipa3_ctx->tx_pkt_wrapper_cache, tx_pkt);
|
|
||||||
|
|
||||||
spin_unlock_bh(&sys->spinlock);
|
spin_unlock_bh(&sys->spinlock);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user