[PATCH] mtd: fix race in cfi_cmdset_0001 driver

Artem Bityutskiy dedekind1 at gmail.com
Fri Feb 11 09:55:04 EST 2011


On Mon, 2011-02-07 at 17:07 +0100, Joakim Tjernlund wrote:
> As inval_cache_and_wait_for_operation() drop and reclaim the lock
> to invalidate the cache, some other thread may suspend the operation
> before reaching the for(;;) loop. Therefore the loop must start with
> checking the chip->state before reading status from the chip.
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>

Pushed to l2-mtd-2.6.git, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list