diff options
author | Martin Kaistra <martin.kaistra@linutronix.de> | 2020-07-13 14:40:02 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-17 10:47:19 -0400 |
commit | 892d4617357db355bf847ca37dd76cf946727ec2 (patch) | |
tree | 28e243f736ef16c7ccbd3019be79725110c79a54 /configs/coreboot64_defconfig | |
parent | b72bbf575b02f1845e1088d1c98390748fc51944 (diff) |
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>
Diffstat (limited to 'configs/coreboot64_defconfig')
0 files changed, 0 insertions, 0 deletions