diff options
author | Eric Dumazet | 2012-05-18 01:52:26 +0200 |
---|---|---|
committer | David S. Miller | 2012-05-18 19:54:33 +0200 |
commit | d4b1133558e0d417342d5d2c49e4c35b428ff20d (patch) | |
tree | 8d50b39901dbcd06d181ad505f7aff76ca9388d7 /net/sctp/sm_statetable.c | |
parent | Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm (diff) | |
download | kernel-qcow2-linux-d4b1133558e0d417342d5d2c49e4c35b428ff20d.tar.gz kernel-qcow2-linux-d4b1133558e0d417342d5d2c49e4c35b428ff20d.tar.xz kernel-qcow2-linux-d4b1133558e0d417342d5d2c49e4c35b428ff20d.zip |
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>
Diffstat (limited to 'net/sctp/sm_statetable.c')
0 files changed, 0 insertions, 0 deletions