summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-07-21 19:06:19 -0700
committerBrian Norris <computersforpeace@gmail.com>2014-08-19 11:53:07 -0700
commit36c6a7ac74044b8025488c018279115bb3c32eb0 (patch)
tree7200d0b6be6b78595dff1fff8520ffb52190c636 /drivers/mtd/mtdcore.c
parent57d3a9a89a0645f3597561e214f8d6852a2c56b4 (diff)
downloadblackbird-obmc-linux-36c6a7ac74044b8025488c018279115bb3c32eb0.tar.gz
blackbird-obmc-linux-36c6a7ac74044b8025488c018279115bb3c32eb0.zip
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: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud