From: Kulikov Vasiliy Date: Thu, 15 Jul 2010 08:47:33 +0000 (+0000) Subject: net: bridge: fix sign bug X-Git-Tag: MMI-PSA29.97-13-9~23092^2~201 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb7a0bd600ac2e09a8747ef89e692a2967ed8c97;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: bridge: fix sign bug ipv6_skip_exthdr() can return error code that is below zero. 'offset' is unsigned, so it makes no sense. ipv6_skip_exthdr() returns 'int' so we can painlessly change type of offset to int. Signed-off-by: Kulikov Vasiliy Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 27ae946363f1..85afcdab4921 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1435,7 +1435,7 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br, struct icmp6hdr *icmp6h; u8 nexthdr; unsigned len; - unsigned offset; + int offset; int err; if (!pskb_may_pull(skb, sizeof(*ip6h)))