Loading
msm: ipa3: fix memory leak in __ipa_reap_sys_rt_tbls
__ipa_reap_sys_rt_tbls always deletes a routing table from
head_rt_tbl_list, but it releases the routing table memory only if
it matches the rule type (hashabale\ non hashable). This function was
called twice each time with a different rule type, therefore if a DMA
memory was allocated for the non hashable type, calling the function for
the hashable type first will delete the routing table entry and the
next call will not release the memory.
This change releases the memory for both rule types and only then deletes
the routing table entry.
Change-Id: Id7f655b324a20c9681a3c48877d825929bc205aa
Signed-off-by:
Amir Levy <alevy@codeaurora.org>