diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-01-11 08:31:55 +0100 |
|---|---|---|
| committer | Dario Binacchi <[email protected]> | 2024-01-15 08:58:24 +0100 |
| commit | 6b37320c7625a7742a6aeac4f9835356b782633c (patch) | |
| tree | 7ca66a358a5e145723e0998eb6800cc5a72ac0b6 /include/linux | |
| parent | 697758e7c81131da6db0e3b10515019fe3aca8c9 (diff) | |
cmd: mtd: avoid unintentional integer overflow
mtd dump beyond 4 GiB will show incorrect results.
Multiplying two u32 will yield a u32. Add a missing cast.
Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command")
Addresses-Coverity-ID: 477205 ("Unintentional integer overflow")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Dario Binacchi <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
