net: pass correct parameter to skb_headers_offset_update()
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Thu, 6 Jun 2013 13:27:21 +0000 (21:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2013 09:48:06 +0000 (02:48 -0700)
commitb41abb42bf62a85a32c41dab873220598a6ee266
treeb8a06a060ee2c5d980e7bd4019969673d85e7c28
parentda12c90e099789a63073fc82a19542ce54d4efb9
net: pass correct parameter to skb_headers_offset_update()

Since commit 1a37e412a022(net: Use 16bits for *_headers fields of struct
skbuff), skb->*_header are relative to skb->head,
so copy_skb_header() should not call skb_headers_offset_update() now,
and we should pass correct parameter to skb_headers_offset_update() in
pskb_expand_head() and skb_copy_expand().

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c