Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f2407298 authored by Dan Carpenter's avatar Dan Carpenter Committed by Len Brown
Browse files

dock: fix dereference after kfree()

dock_remove() calls kfree() on dock_station so we should use
list_for_each_entry_safe() to avoid dereferencing freed memory.

Found by smatch (http://repo.or.cz/w/smatch.git/

).  Compile tested.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 5b4c0b6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment