diff options
author | 2024-09-24 14:40:08 +0100 | |
---|---|---|
committer | 2024-10-01 19:02:01 +0100 | |
commit | 68a16708d2503b6303d67abd43801e2ca40c208d (patch) | |
tree | dbd1d4a4eed3edd6982e34f539491d19a5571e08 /drivers/usb/cdns3/cdns3-debug.h | |
parent | spi: atmel-quadspi: Fix wrong register value written to MR (diff) | |
download | wireguard-linux-68a16708d2503b6303d67abd43801e2ca40c208d.tar.xz wireguard-linux-68a16708d2503b6303d67abd43801e2ca40c208d.zip |
spi: s3c64xx: fix timeout counters in flush_fifo
In the s3c64xx_flush_fifo() code, the loops counter is post-decremented
in the do { } while(test && loops--) condition. This means the loops is
left at the unsigned equivalent of -1 if the loop times out. The test
after will never pass as if tests for loops == 0.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Fixes: 230d42d422e7 ("spi: Add s3c64xx SPI Controller driver")
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20240924134009.116247-2-ben.dooks@codethink.co.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions