diff options
author | Stefan Riedmueller <s.riedmueller@phytec.de> | 2020-05-04 15:21:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-05 07:43:07 +0200 |
commit | f62bb30044dbad752bf0414239f793585d66960c (patch) | |
tree | fb4d35f693164dfd4f47ade44d3395641a2f14b6 /scripts | |
parent | 8005a5be7e284164475552987974b7a8d7a5198e (diff) | |
download | barebox-f62bb30044dbad752bf0414239f793585d66960c.tar.gz barebox-f62bb30044dbad752bf0414239f793585d66960c.tar.xz |
mtd: mtdraw: Fix cdev size calculation for large NANDs
Raw size for large NAND devices (> 4 GB) can exceed 32 bits, so we need
64 bit types as factors. Both factors are of 32 bit types, as such is
the return value. At least one factor needs to be 64 bit type when
calculating the size.
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Yunus Bas <y.bas@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions