linux/drivers/mtd/chips
Brian Norris 36c6a7ac74 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>
2014-08-19 11:53:07 -07:00
..
cfi_cmdset_0001.c mtd: cfi_cmdset_0001.c: add support for Sharp LH28F640BF NOR 2014-07-13 22:22:47 -07:00
cfi_cmdset_0002.c mtd: cfi_cmdset_0002: allow retry/timeout loop to exit 2014-08-19 11:53:07 -07:00
cfi_cmdset_0020.c mtd: cfi: indent some if statements 2014-05-20 17:36:01 -07:00
cfi_probe.c mtd: cfi: Remove unnecessary OOM messages 2014-03-10 22:42:25 -07:00
cfi_util.c mtd: cfi: indent some if statements 2014-05-20 17:36:01 -07:00
chipreg.c mtd: simplify return logic in do_map_probe() 2012-03-27 00:35:06 +01:00
fwh_lock.h mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
gen_probe.c mtd: gen_probe: Remove unnecessary OOM messages 2014-03-10 22:42:25 -07:00
jedec_probe.c mtd: jedec_probe: fix LH28F640BF definition 2013-08-05 21:04:17 +01:00
Kconfig mtd: Kconfig: give the CFI command set version in prompt and help 2014-05-20 17:36:43 -07:00
Makefile [MTD] [CHIPS] Remove MTD_OBSOLETE_CHIPS (jedec, amd_flash, sharp) 2007-05-09 13:34:37 +01:00
map_absent.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
map_ram.c mtd: remove R/O checking duplication 2012-03-27 00:29:11 +01:00
map_rom.c mtd: remove R/O checking duplication 2012-03-27 00:29:11 +01:00