diff options
Diffstat (limited to 'net/dcb')
-rw-r--r-- | net/dcb/dcbnl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 4323bd441f0f..d900ab99814a 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -1643,9 +1643,10 @@ EXPORT_SYMBOL(dcb_setapp); | |||
1643 | static void dcb_flushapp(void) | 1643 | static void dcb_flushapp(void) |
1644 | { | 1644 | { |
1645 | struct dcb_app_type *app; | 1645 | struct dcb_app_type *app; |
1646 | struct dcb_app_type *tmp; | ||
1646 | 1647 | ||
1647 | spin_lock(&dcb_lock); | 1648 | spin_lock(&dcb_lock); |
1648 | list_for_each_entry(app, &dcb_app_list, list) { | 1649 | list_for_each_entry_safe(app, tmp, &dcb_app_list, list) { |
1649 | list_del(&app->list); | 1650 | list_del(&app->list); |
1650 | kfree(app); | 1651 | kfree(app); |
1651 | } | 1652 | } |