From: Arthur Kepner Date: Tue, 21 Mar 2006 05:26:56 +0000 (-0800) Subject: [NET] pktgen: Fix races between control/worker threads. X-Git-Tag: v2.6.17-rc1~1175^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ed63f791656fc19e36ae68bc328e367958c76b;p=pandora-kernel.git [NET] pktgen: Fix races between control/worker threads. There's a race in pktgen which can lead to a double free of a pktgen_dev's skb. If a worker thread is in the midst of doing fill_packet(), and the controlling thread gets a "stop" message, the already freed skb can be freed once again in pktgen_stop_device(). This patch gives all responsibility for cleaning up a pktgen_dev's skb to the associated worker thread. Signed-off-by: Arthur Kepner Acked-by: Robert Olsson Signed-off-by: David S. Miller --- Reading git-diff-tree failed