[PATCH] mtd: cfi_cmdset_0002: allow retry/timeout loop to exit

Brian Norris computersforpeace at gmail.com
Tue Aug 5 14:53:05 PDT 2014


On Mon, Jul 21, 2014 at 07:06:19PM -0700, Brian Norris wrote:
> 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 at gmail.com>

Pushed this and my other Coverity-inspired patches to l2-mtd.git/next.

Brian



More information about the linux-mtd mailing list