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-05-18 21:19:23 -04:00
2020-07-07 18:23:48 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-06-02 17:27:04 -04:00
2020-07-11 21:30:21 +09:00
2020-05-18 21:19:23 -04:00
2020-07-14 15:23:47 +08:00
2020-07-17 14:32:24 +08:00
2020-07-01 15:01:27 +08:00
2020-05-19 14:01:47 -04:00
2020-07-17 09:30:13 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-07-13 20:58:34 +05:30
2020-05-18 21:19:18 -04:00
2020-06-24 13:07:57 +02:00
2020-06-24 13:11:08 +02:00
2020-07-17 08:04:48 -04:00
2020-05-18 21:19:23 -04:00
2020-07-17 14:32:24 +08:00
2020-07-09 18:57:22 -06:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2020-07-17 08:04:48 -04:00
2020-07-17 09:30:13 -04:00
2020-07-17 10:47:19 -04:00
2020-07-17 10:46:44 -04:00
2020-06-23 14:43:23 -04:00
2020-05-18 21:19:18 -04:00
2020-07-17 09:30:13 -04:00
2020-05-18 21:19:23 -04:00
2020-06-16 17:00:02 +05:30
2020-07-17 08:04:48 -04:00
2020-07-17 08:04:48 -04:00
2020-07-09 06:03:12 +02:00
2020-07-17 09:30:13 -04:00
2020-07-09 22:00:29 -06:00
2020-05-18 21:19:18 -04:00
2020-07-10 11:49:28 +02:00
2020-05-18 21:19:23 -04:00
2020-07-17 14:32:24 +08:00
2020-05-18 21:19:18 -04:00
2020-07-17 08:47:29 -04:00
2020-05-18 21:19:23 -04:00
2020-07-13 20:58:34 +05:30
2020-07-17 14:32:24 +08:00
2020-07-17 08:04:48 -04:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-22 13:29:25 +02:00
2020-05-18 21:19:23 -04:00
2020-07-09 18:57:22 -06:00
2020-05-18 21:19:23 -04:00
2020-07-17 09:30:13 -04:00
2020-07-17 09:30:13 -04:00
2020-06-05 04:04:41 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-07-16 11:20:21 +02:00
2020-07-11 21:30:21 +09:00
2020-07-11 21:30:21 +09:00