wl_list_for_each dereference's output to increment the next iteration of the loop. However, output is free'd inside the loop resulting in a dereference to free'd memory. Use wl_list_for_each_safe instead, which is designed to handle this kind of pattern. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>dev
parent
caa7019317
commit
a1e887bd46
Loading…
Reference in new issue