]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IP_GRE: Fix kernel panic in IP_GRE with GRE csum.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 23 Jan 2013 11:45:42 +0000 (11:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:48:16 +0000 (10:48 -0800)
commit70b40e0ec5a61b7c073690c2a2fc1da13b520254
tree79a90f6b62042752d6934df701cac28e33c63c7a
parentbe730f3d2049d1161ea22ada338dd1aeaef20065
IP_GRE: Fix kernel panic in IP_GRE with GRE csum.

[ Upstream commit 5465740ace36f179de5bb0ccb5d46ddeb945e309 ]

Due to IP_GRE GSO support, GRE can recieve non linear skb which
results in panic in case of GRE_CSUM.  Following patch fixes it by
using correct csum API.

Bug introduced in commit 6b78f16e4bdde3936b (gre: add GSO support)

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_gre.c