summaryrefslogtreecommitdiff
path: root/.github/pull_request_template.md
diff options
context:
space:
mode:
authorMartin Kaistra <[email protected]>2020-07-13 14:40:02 +0200
committerTom Rini <[email protected]>2020-07-17 10:47:19 -0400
commit892d4617357db355bf847ca37dd76cf946727ec2 (patch)
tree28e243f736ef16c7ccbd3019be79725110c79a54 /.github/pull_request_template.md
parentb72bbf575b02f1845e1088d1c98390748fc51944 (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 <[email protected]> Reviewed-by: Kurt Kanzenbach <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to '.github/pull_request_template.md')
0 files changed, 0 insertions, 0 deletions