diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-12 08:34:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-12 13:06:57 +0100 |
commit | 5c1d5f091dc39eecf9a34a8be01492d14c23ad91 (patch) | |
tree | f7ef44547a9cfb96e7ec0053d39fd0f14aef2527 /usr | |
parent | ASoC: Add a per component dai list (diff) | |
download | linux-5c1d5f091dc39eecf9a34a8be01492d14c23ad91.tar.xz linux-5c1d5f091dc39eecf9a34a8be01492d14c23ad91.zip |
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions