Skip to contentSkip to conversation

question: potential memory leak in ngbe_probe?

DISCUSSION shaozhengchao 1 participant 1 message Jun 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Jiawen:
When I review the wangxun driver code, I found when
wx_check_flash_load() or wx_mng_present() e.g. failed in ngbe_probe(),RSS key that allcated in ngbe_sw_init() is not released. Is there a possibility of a memory leak?
I thing add kfree() inthe error path to release the RSS key will be OK.
Is anything I missed?

Thank you.

Zhengchao Shao