[alsa-devel] [PATCH] ASoC: max98373: Fix calls to free_gpio()

Daniel Baluta daniel.baluta at nxp.com
Mon Nov 4 14:03:38 CET 2019


Hi Yong,

On Fri, 2019-11-01 at 12:08 -0500, Yong Zhi wrote:
> Don't Call free_gpio() when request_gpio() fails, call it
> at error paths to avoid resource leak.
> 

Uosing devm_gpio_request will make the change cleaner.
What do you think?

thanks,
Daniel.


More information about the Alsa-devel mailing list