From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 15 Jul 2010 12:21:44 -0700 From: Stephen Hemminger Message-ID: <20100715122144.0f2cf5cf@nehalam> In-Reply-To: <1279219653-12791-1-git-send-email-segooon@gmail.com> References: <1279219653-12791-1-git-send-email-segooon@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH 7/8] net: bridge: fix sign bug List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kulikov Vasiliy Cc: YOSHIFUJI, Eric Dumazet , Hideaki , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, kernel-janitors@vger.kernel.org, Herbert Xu , "David S. Miller" On Thu, 15 Jul 2010 22:47:33 +0400 Kulikov Vasiliy wrote: > 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 > --- > net/bridge/br_multicast.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > index 27ae946..85afcda 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))) Acked-by: Stephen Hemminger --