Skip to content
Commit aa9b762d authored by Maureen Helm's avatar Maureen Helm Committed by Ioannis Glaropoulos
Browse files

disk: Fix usdhc driver out-of-bounds array access



The usdhc driver was incorrectly post-decrementing a do/while loop
iterator, causing an extra iteration of the loop and an out-of-bounds
array access. Change the iterator to decrement within the loop instead.

Tested samples/subsys/fs/fat_fs on the mimxrt1050_evk board.

Coverity-CID: 203403

Signed-off-by: default avatarMaureen Helm <maureen.helm@nxp.com>
parent 47f36afd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment