[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190524154252.GA10186@zhanggen-UX430UQ>
Date: Fri, 24 May 2019 23:42:52 +0800
From: Gen Zhang <blackgod016574@...il.com>
To: Jon Hunter <jonathanh@...dia.com>
Cc: lgirdwood@...il.com, perex@...ex.cz, alsa-devel@...a-project.org,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tegra_wm9712: Fix a memory leaking bug in
tegra_wm9712_driver_probe()
On Fri, May 24, 2019 at 04:36:54PM +0100, Jon Hunter wrote:
> There could well be cases where you need to explicitly call
> devm_kfree(), but having a quick glance at the example above, I don't
> see why you would call devm_kfree() here and yes looks like that code
> could be simplified significantly. Notice that hisi_sas_debugfs_exit()
> does not free any memory as it is not necessary to explicitly do so.
>
> Cheers
> Jon
>
> --
> nvpublic
Thanks for your suggestions, Jon! I think I need to e-mail to those
maintainers about this issue.
Thanks
Gen
Powered by blists - more mailing lists