[alsa-devel] [PATCH] sound: soc: fix invalid free of devm_ allocated data

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Mar 20 11:06:34 CET 2013

On Sat, Mar 16, 2013 at 01:45:34PM +0200, Silviu-Mihai Popescu wrote:
> The objects allocated by devm_* APIs are managed by devres and are freed when
> the device is detached. Hence there is no need to use kfree() explicitly.

...but I applied this anyway since it's clearly an improvement and a
small leak is better than a crash.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130320/0b05b230/attachment.sig>

More information about the Alsa-devel mailing list