diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 77a59980b579..b81369b6ddc0 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -3755,13 +3755,13 @@ static void __exit pg_cleanup(void) | |||
3755 | { | 3755 | { |
3756 | struct pktgen_thread *t; | 3756 | struct pktgen_thread *t; |
3757 | struct list_head *q, *n; | 3757 | struct list_head *q, *n; |
3758 | struct list_head list; | 3758 | LIST_HEAD(list); |
3759 | 3759 | ||
3760 | /* Stop all interfaces & threads */ | 3760 | /* Stop all interfaces & threads */ |
3761 | pktgen_exiting = true; | 3761 | pktgen_exiting = true; |
3762 | 3762 | ||
3763 | mutex_lock(&pktgen_thread_lock); | 3763 | mutex_lock(&pktgen_thread_lock); |
3764 | list_splice(&list, &pktgen_threads); | 3764 | list_splice_init(&pktgen_threads, &list); |
3765 | mutex_unlock(&pktgen_thread_lock); | 3765 | mutex_unlock(&pktgen_thread_lock); |
3766 | 3766 | ||
3767 | list_for_each_safe(q, n, &list) { | 3767 | list_for_each_safe(q, n, &list) { |