]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: udp: fix the wrong headroom check
authorShan Wei <shanwei@cn.fujitsu.com>
Tue, 19 Apr 2011 22:52:49 +0000 (22:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2011 17:39:10 +0000 (10:39 -0700)
commit6b0208689c703b365329a4a137302dfcd6c303e6
tree07a723cb628f223e4f756f0cb02eeba8b6ee9c62
parent718f1c2c628e84d8219927754033796b3a8ecae1
ipv6: udp: fix the wrong headroom check

At this point, skb->data points to skb_transport_header.
So, headroom check is wrong.

For some case:bridge(UFO is on) + eth device(UFO is off),
there is no enough headroom for IPv6 frag head.
But headroom check is always false.

This will bring about data be moved to there prior to skb->head,
when adding IPv6 frag header to skb.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c