ah: reload pointers to skb data after calling skb_cow_data()
authorDang Hongwu <hongwu.dang@6wind.com>
Tue, 11 Jan 2011 07:13:33 +0000 (07:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jan 2011 22:03:10 +0000 (14:03 -0800)
commit4b0ef1f223be4e092632b4152ceec5627ac10f59
tree79472554ddc96359cdfe07f6b4967dabe9cb5eaa
parente44f391187495e0deaf7b9f0077e94f270837d1a
ah: reload pointers to skb data after calling skb_cow_data()

skb_cow_data() may allocate a new data buffer, so pointers on
skb should be set after this function.

Bug was introduced by commit dff3bb06 ("ah4: convert to ahash")
and 8631e9bd ("ah6: convert to ahash").

Signed-off-by: Wang Xuefu <xuefu.wang@6wind.com>
Acked-by: Krzysztof Witek <krzysztof.witek@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv6/ah6.c