Commit 2a8fe003 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

dcb: use after free in dcb_flushapp()

The original code has a use after free bug because it's not using the
_safe() version of the list_for_each_entry() macro.
Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarDavid S. Miller <>
parent 70bfa2d2
......@@ -1643,9 +1643,10 @@ EXPORT_SYMBOL(dcb_setapp);
static void dcb_flushapp(void)
struct dcb_app_type *app;
struct dcb_app_type *tmp;
list_for_each_entry(app, &dcb_app_list, list) {
list_for_each_entry_safe(app, tmp, &dcb_app_list, list) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment