commit | 12aead05bcd4dac057c527ae8911ff3779b0c76d | [log] [tgz] |
---|---|---|
author | Alexander Stein <alexander.stein@ew.tq-group.com> | Thu Feb 20 15:58:07 2025 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Feb 28 08:37:49 2025 -0600 |
tree | 017ee27b4b2ac0cdd9ce81a6a9a394f727700d10 | |
parent | 9d581ed2266153d76596d8119545ce9ec5dd510a [diff] |
mtd: mtdpart: Support MTD_SIZE_REMAINING with unallocated memory area If there is an unallocated memory area before the last, filling parting the size calculation for MTD_SIZE_REMAINING does not take this hole into account. Fix this by calculating the remaining size just based on total size and partition offset. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>