question: potential memory leak in ngbe_probe?
Subsystems (2)
Hi Jiawen:
When I review the wangxun driver code, I found whenwx_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