From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 4 May 2016 16:59:11 +0200 From: Linus =?utf-8?Q?L=C3=BCssing?= Message-ID: <20160504145911.GA2604@otheros> References: <1462306734-4183-1-git-send-email-linus.luessing@c0d3.blue> <20160503132623.59cf54fb@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160503132623.59cf54fb@xeon-e3> Subject: Re: [Bridge] [PATCH net] bridge: fix igmp / mld query parsing List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephen Hemminger Cc: Simon Wunderlich , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, "David S . Miller" , linux-kernel@vger.kernel.org On Tue, May 03, 2016 at 01:26:23PM -0700, Stephen Hemminger wrote: > On Tue, 3 May 2016 22:18:54 +0200 > Linus Lüssing wrote: > > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > > index 03661d9..7105cdf 100644 > > --- a/net/bridge/br_multicast.c > > +++ b/net/bridge/br_multicast.c > > @@ -1271,6 +1271,7 @@ static int br_ip4_multicast_query(struct net_bridge *br, > > unsigned long max_delay; > > unsigned long now = jiffies; > > __be32 group; > > + int offset = skb_transport_offset(skb); > shouldn't this be unsigned? Yes, should always be unsigned here. Ok, I'm changing that (even though skb_transport_offset() is "static inline int").