1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-07 00:26:34 +01:00
Files
u-boot-megous/drivers
Martin Kaistra 892d461735 mtd: mtdpart: use uint64_t instead of int for cur_off
The types of "offset" and "size" of "struct mtd_partition" are uint64_t,
while mtd_parse_partitions() uses int to work with these values. When
the offset reaches 2GB, it is interpreted as a negative value, which
leads to error messages like

mtd: partition "<partition name>" is out of reach -- disabled

eg. when using the "ubi part" command.

Fix this by using uint64_t for cur_off and cur_sz.

Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
2020-07-17 10:47:19 -04:00
..
2020-07-07 18:23:48 -04:00
2020-07-14 15:23:47 +08:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-07-09 06:03:12 +02:00
2020-07-17 08:47:29 -04:00
2020-05-18 21:19:18 -04:00