Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: wm8940: fix a memory leak if wm8940_register return error
This patch adds checking for wm8940_register return value, and does kfree(wm8940) if wm8940_register() fail. Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
- Loading branch information