[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130601184659.GD16790@sirena.org.uk>
Date: Sat, 1 Jun 2013 19:46:59 +0100
From: Mark Brown <broonie@...nel.org>
To: Stephen Warren <swarren@...dotorg.org>
Cc: Grant Likely <grant.likely@...aro.org>, linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org, Stephen Warren <swarren@...dia.com>
Subject: Re: [PATCH 1/3] spi: fix undefined behaviour in SPI_BPW_RANGE_MASK
On Thu, May 30, 2013 at 09:59:39AM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@...dia.com>
>
> The parameters to SPI_BPW_RANGE_MASK() are in the range 1..32. If 32 is
> used as a parameter, part of the expression is "1 << 32". Since 32 is >=
> the size of the type in use, such a shift is undefined behaviour. Add
Applied all, thanks.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists