freak07 / FLORAL

Kirisakura Kernel for the Pixel 4/XL
Other
27 stars 22 forks source link

soc: qcom: watchdog_v2: Fix memory leaks when memory_dump_v2 isn't built #5

Closed momojuro closed 2 years ago

momojuro commented 2 years ago

When the memory-dump driver isn't built (CONFIG_QCOM_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 skipping configure_bark_dump() when CONFIG_QCOM_MEMORY_DUMP_V2 is disabled.

Signed-off-by: Sultan Alsawaf sultan@kerneltoast.com

freak07 commented 2 years ago

included in next release, thank you :)