[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090313.160533.111575830.davem@davemloft.net>
Date: Fri, 13 Mar 2009 16:05:33 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: roel.kluin@...il.com
Cc: herbert@...dor.apana.org.au, netdev@...r.kernel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH] tcp: '< 0' test on unsigned
From: Roel Kluin <roel.kluin@...il.com>
Date: Mon, 02 Mar 2009 13:24:52 +0100
> David Miller wrote:
> > From: Herbert Xu <herbert@...dor.apana.org.au>
> > Date: Mon, 2 Mar 2009 12:30:56 +0800
> >
> >> Either cnt needs to be promoted, or you need to limit len to INT_MAX.
> >
> > Right, since the positive range of 'size_t' can exceed that of 'int'
>
> like this then?
> ------------------------------>8-------------8<---------------------------------
> promote 'cnt' to size_t, to match 'len'.
>
> Signed-off-by: Roel Kluin <roel.kluin@...il.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists