linux/drivers/mtd/parsers
Dan Carpenter 6c0a15a3dc 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
2022-11-07 17:11:33 +01:00
..
afs.c mtd: parsers: afs: Fix freeing the part name memory in failure 2021-02-01 18:58:38 +01:00
ar7part.c mtd: parsers: Move TI AR7 parser 2019-09-15 23:50:48 +02:00
bcm47xxpart.c mtd: parsers: bcm47xxpart: Fix halfblock reads 2022-10-18 11:20:12 +02:00
bcm63xxpart.c mtd: parsers: bcm63xx: simplify CFE detection 2020-06-26 08:35:10 +02:00
brcm_u-boot.c mtd: parsers: add Broadcom's U-Boot parser 2022-09-19 18:13:08 +02:00
cmdlinepart.c mtd: move from strlcpy with unused retval to strscpy 2022-09-19 18:14:53 +02:00
Kconfig mtd: parsers: add TP-Link SafeLoader partitions table parser 2022-11-07 17:08:00 +01:00
Makefile mtd: parsers: add TP-Link SafeLoader partitions table parser 2022-11-07 17:08:00 +01:00
ofpart_bcm4908.c mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset 2022-06-09 15:03:32 +02:00
ofpart_bcm4908.h mtd: parsers: ofpart: support BCM4908 fixed partitions 2021-03-11 09:37:49 +01:00
ofpart_core.c mtd: parsers: ofpart: fix parsing subpartitions 2021-05-10 18:34:30 +02:00
ofpart_linksys_ns.c mtd: parsers: ofpart: support Linksys Northstar partitions 2021-03-28 19:27:02 +02:00
ofpart_linksys_ns.h mtd: parsers: ofpart: support Linksys Northstar partitions 2021-03-28 19:27:02 +02:00
parser_imagetag.c mtd: parser: imagetag: fix error codes in bcm963xx_parse_imagetag_partitions() 2021-01-28 22:24:54 +01:00
parser_trx.c mtd: parsers: trx: Allow to specify brcm, trx-magic in DT 2021-05-10 12:11:50 +02:00
qcomsmempart.c mtd: parsers: qcom: Fix missing free for pparts in cleanup 2022-01-25 10:32:07 +01:00
redboot.c mtd: partitions: Fix refcount leak in parse_redboot_of 2022-06-09 15:03:32 +02:00
scpart.c mtd: parsers: scpart: add missing of_node_put() in scpart_parse() 2022-06-17 08:29:50 +02:00
sharpslpart.c mtd: sharpslpart: Fix unsigned comparison to zero 2020-01-21 20:00:34 +01:00
tplink_safeloader.c mtd: parsers: tplink_safeloader: fix uninitialized variable bug 2022-11-07 17:11:33 +01:00