Re: [PATCH] Fix memory leak in brcmf_get_module_param

From: Markus Elfring
Date: Sun Mar 30 2025 - 07:33:56 EST


> The memory allocated for settings is not freed when brcmf_of_probe
> fails. Fix that by freeing settings before returning in error path.

failed?

* Would you like to append parentheses to any function names?

* See also:
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14#n631


Regards,
Markus