[PATCH] mtd: parsers: tplink_safeloader: fix uninitialized variable bug

Miquel Raynal miquel.raynal at bootlin.com
Mon Nov 7 08:22:42 PST 2022

On Tue, 2022-10-25 at 15:34:24 UTC, Dan Carpenter wrote:
> On 64 bit systems, the highest 32 bits of the "offset" variable are
> not initialized.  Also the existing code is not endian safe (it will
> fail on big endian systems).  Change the type of "offset" to a u32.
> Fixes: aec4d5f5ffd0 ("mtd: parsers: add TP-Link SafeLoader partitions table parser")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> Acked-by: Rafał Miłecki <rafal at milecki.pl>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.


More information about the linux-mtd mailing list