soc: qcom: watchdog_v2: Fix memory leaks when memory_dump_v2 isn't built
When the memory_dump_v2.c driver isn't built (CONFIG_MSM_MEMORY_DUMP_V2=n), an inline version of msm_dump_data_register() will be used that does nothing. This means that all memory allocated with the intention of going to msm_dump_data_register() will be leaked. Fix this by ignoring the entire code block when CONFIG_MSM_MEMORY_DUMP_V2 is disabled. Signed-off-by:Sultanxda <sultanxda@gmail.com> Signed-off-by:
Francisco Franco <franciscofranco.1990@gmail.com>
Loading
Please register or sign in to comment