Skip to content
Commit 31b33dfb authored by Pravin B Shelar's avatar Pravin B Shelar Committed by David S. Miller
Browse files

skbuff: Fix skb checksum partial check.

Earlier patch 6ae459bd tried to detect void ckecksum partial
skb by comparing pull length to checksum offset. But it does
not work for all cases since checksum-offset depends on
updates to skb->data.

Following patch fixes it by validating checksum start offset
after skb-data pointer is updated. Negative value of checksum
offset start means there is no need to checksum.

Fixes: 6ae459bd

 ("skbuff: Fix skb checksum flag on skb pull")
Reported-by: default avatarAndrew Vagin <avagin@odin.com>
Signed-off-by: default avatarPravin B Shelar <pshelar@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 741a11d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment