[alsa-devel] [PATCH] ASoC: max98373: Fix calls to free_gpio()
Mark Brown
broonie at kernel.org
Mon Nov 4 14:17:54 CET 2019
On Mon, Nov 04, 2019 at 01:03:38PM +0000, Daniel Baluta wrote:
> 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?
Yes, that's even better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20191104/4616b1d8/attachment.sig>
More information about the Alsa-devel
mailing list