ipv6: fix overlap check for fragments
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 5 Nov 2010 01:56:34 +0000 (01:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Nov 2010 20:17:06 +0000 (12:17 -0800)
The type of FRAG6_CB(prev)->offset is int, skb->len is *unsigned* int,
and offset is int.

Without this patch, type conversion occurred to this expression, when
(FRAG6_CB(prev)->offset + prev->len) is less than offset.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found