diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-12 12:34:38 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-28 10:27:40 -0600 |
| commit | 0ed45794ae9fa3bd8adb1f2d85875f93d94249f8 (patch) | |
| tree | 6d7cae717e0ca32a893770cc679ec21a75b36dc8 /include/linux | |
| parent | 7807ed921314cd7af83fd88162d0b8c6fb20a9ca (diff) | |
spi: cadence_qspi: Off by 1 in test for timeout
In cadence_qspi_apb_exec_flash_cmd the test for a timeout uses a
post-decrement on the variable retry which will result in a value of -1
after the loop exit, or it would if the variable were signed.
To fix this make retry a signed variable and test its value for being
equal to -1.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
