[alsa-devel] [PATCH] ASoC: Fix use after free

Mark Brown broonie at kernel.org
Wed Mar 12 13:07:20 CET 2014

On Wed, Mar 12, 2014 at 08:34:39AM +0100, Lars-Peter Clausen wrote:
> Freeing the current list element while iterating over the list will cause a use
> after free since the iterator function will still use the current element to
> look up the next. Use list_for_each_safe() and remove the element from the list
> before freeing it to avoid this.

Applied, thanks.
-------------- 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/20140312/da6bc2f9/attachment.sig>

More information about the Alsa-devel mailing list