Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 36c6a7ac authored by Brian Norris's avatar Brian Norris
Browse files

mtd: cfi_cmdset_0002: allow retry/timeout loop to exit



The variable 'retries' is never modified, so if the reset operation
never is going to complete, we'll get stuck in an infinite loop.

It looks like the intention was to decrement 'retries' on every loop.
Untested.

Caught by Coverity.

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 57d3a9a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment