From: Li RongQing Date: Mon, 11 Mar 2013 20:30:44 +0000 (+0000) Subject: net/core: move vlan_depth out of while loop in skb_network_protocol() X-Git-Tag: v3.9-rc4~27^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c80a8512ee3a8e1f7c3704140ea55f21dc6bd651;p=pandora-kernel.git net/core: move vlan_depth out of while loop in skb_network_protocol() [ Bug added added in commit 05e8ef4ab2d8087d (net: factor out skb_mac_gso_segment() from skb_gso_segment() ) ] move vlan_depth out of while loop, or else vlan_depth always is ETH_HLEN, can not be increased, and lead to infinite loop when frame has two vlan headers. Signed-off-by: Li RongQing Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed