[PATCH] mtd: spi-nor: Fix integer overflow in stacked memories support

Tom Rini trini at konsulko.com
Mon Nov 11 14:24:46 CET 2024


On Sun, 03 Nov 2024 00:57:31 +0100, Marek Vasut wrote:

> The 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
> adds new SPI bus flags, but also introduces a completely new set of
> SPI bus flags in another location. The existing flags field is type
> u8, while the new separate flags are BIT(8) and higher. Use of those
> new flags triggers integer overflow.
> 
> Drop the newly introduced flags which were never used anywhere in the
> code. Move the one remaining flag which was used in the correct place
> and change it from BIT(8) to BIT(6) so it fits the u8 flags.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list