From: Eric Dumazet Date: Sun, 11 Apr 2010 21:18:17 +0000 (+0000) Subject: net: dev_pick_tx() fix X-Git-Tag: v2.6.34-rc5~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8728c544a9cbdcb0034aa5c45706c5f953f030ee;p=pandora-kernel.git net: dev_pick_tx() fix When dev_pick_tx() caches tx queue_index on a socket, we must check socket dst_entry matches skb one, or risk a crash later, as reported by Denys Fedorysychenko, if old packets are in flight during a route change, involving devices with different number of queues. Bug introduced by commit a4ee3ce3 (net: Use sk_tx_queue_mapping for connected sockets) Reported-by: Denys Fedorysychenko Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed