Eric Dumazet d4b1133558 pktgen: fix module unload for good
commit c57b5468406 (pktgen: fix crash at module unload) did a very poor
job with list primitives.

1) list_splice() arguments were in the wrong order

2) list_splice(list, head) has undefined behavior if head is not
initialized.

3) We should use the list_splice_init() variant to clear pktgen_threads
list.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-18 13:54:33 -04:00
..
2012-02-26 14:49:57 -06:00
2012-05-18 13:54:33 -04:00
2012-05-01 13:40:48 -04:00
2011-12-16 15:49:52 -05:00