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

Miquel Raynal
2022-11-07T16:35:28Z

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@oracle.com>
> Acked-by: Rafał Miłecki <rafal@milecki.pl>

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

Miquel