diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-21 03:53:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-21 03:53:04 +0200 |
commit | 17eea0df5f7068fc04959e655ef8f0a0ed097e19 (patch) | |
tree | d44b5cceb813dddfd1e62fe9f92556cf113d62fd /net/core | |
parent | ipv6/exthdrs: strict Pad1 and PadN check (diff) | |
parent | Linux 3.4 (diff) | |
download | linux-17eea0df5f7068fc04959e655ef8f0a0ed097e19.tar.xz linux-17eea0df5f7068fc04959e655ef8f0a0ed097e19.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/core')
-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 30eb768cd677..cce9e53528b1 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -3749,13 +3749,13 @@ static void __exit pg_cleanup(void) { struct pktgen_thread *t; struct list_head *q, *n; - struct list_head list; + LIST_HEAD(list); /* Stop all interfaces & threads */ pktgen_exiting = true; mutex_lock(&pktgen_thread_lock); - list_splice(&list, &pktgen_threads); + list_splice_init(&pktgen_threads, &list); mutex_unlock(&pktgen_thread_lock); list_for_each_safe(q, n, &list) { |