mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
msm: ipa: Free rx_wrapper for tmp_alloc pages
This fix would update free_rx_wrapper to free the wrapper for temp pages allocated. Change-Id: If60a939b8c4f0e67f970922a0f20b3a2913b9a00 Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com> Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
This commit is contained in:
parent
a0aff6fc73
commit
a9df2e6ea4
1 changed files with 7 additions and 1 deletions
|
|
@ -3257,7 +3257,13 @@ static void ipa3_recycle_rx_wrapper(struct ipa3_rx_pkt_wrapper *rx_pkt)
|
|||
|
||||
static void ipa3_recycle_rx_page_wrapper(struct ipa3_rx_pkt_wrapper *rx_pkt)
|
||||
{
|
||||
/* no-op */
|
||||
struct ipa_rx_page_data rx_page;
|
||||
|
||||
rx_page = rx_pkt->page_data;
|
||||
|
||||
/* Free rx_wrapper only for tmp alloc pages*/
|
||||
if (rx_page.is_tmp_alloc)
|
||||
kmem_cache_free(ipa3_ctx->rx_pkt_wrapper_cache, rx_pkt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue