diff options
author | Sien Wu <[email protected]> | 2016-09-01 18:24:29 -0500 |
---|---|---|
committer | Mark Brown <[email protected]> | 2016-09-03 11:58:13 +0100 |
commit | d0716dde375eb6bff332763bb2137302120d263d (patch) | |
tree | 810fecfc8a20b65e031b5586c34ce7a64932025f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
spi: Prevent unexpected SPI time out due to arithmetic overflow
When reading SPI flash as MTD device, the transfer length is
directly passed to the spi driver. If the requested data size
exceeds 512KB, it will cause the time out calculation to
overflow since transfer length is 32-bit unsigned integer.
This issue is resolved by using 64-bit unsigned integer
to perform the arithmetic.
Signed-off-by: Sien Wu <[email protected]>
Acked-by: Brad Keryan <[email protected]>
Acked-by: Gratian Crisan <[email protected]>
Acked-by: Brad Mouring <[email protected]>
Natinst-ReviewBoard-ID 150232
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions