diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-10-25 18:34:24 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-11-07 17:11:33 +0100 |
commit | 6c0a15a3dc6b45156c5b9568c8308e3f0d802af0 (patch) | |
tree | 277fd664f5fae07897bb5627c17e99ce64617503 /drivers/mtd/devices | |
parent | 00a3588084bee6f37bb2b1d343f96900cfe049bc (diff) | |
download | linux-stable-6c0a15a3dc6b45156c5b9568c8308e3f0d802af0.tar.gz linux-stable-6c0a15a3dc6b45156c5b9568c8308e3f0d802af0.tar.bz2 linux-stable-6c0a15a3dc6b45156c5b9568c8308e3f0d802af0.zip |
mtd: parsers: tplink_safeloader: fix uninitialized variable bug
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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/Y1gCALFWXYYwqV1P@kili
Diffstat (limited to 'drivers/mtd/devices')
0 files changed, 0 insertions, 0 deletions