Home
last modified time | relevance | path

Searched hist:"5 c1d5f091dc39eecf9a34a8be01492d14c23ad91" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/
H A Dsoc-core.cdiff 5c1d5f091dc39eecf9a34a8be01492d14c23ad91 Wed Mar 12 02:34:39 CDT 2014 Lars-Peter Clausen <lars@metafoo.de> ASoC: Fix use after free

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.

Fixes: 1438c2f60b ("ASoC: Add a per component dai list")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>