diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2011-02-07 17:07:11 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 13:09:07 +0100 |
commit | ecf3fde07c8dcb92a1bf3fbdfe70905d85cd00e1 (patch) | |
tree | b45b4729fdd5e49f588629a3da968a4a90aa401f /drivers/leds/leds-ss4200.c | |
parent | mtd: jedec_probe: initialise make sector erase command variable (diff) | |
download | linux-ecf3fde07c8dcb92a1bf3fbdfe70905d85cd00e1.tar.xz linux-ecf3fde07c8dcb92a1bf3fbdfe70905d85cd00e1.zip |
mtd: fix race in cfi_cmdset_0001 driver
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@transmode.se>
Acked-by: Michael Cashwell <mboards@prograde.net>
Acked-by: Stefan Bigler <stefan.bigler@keymile.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/leds/leds-ss4200.c')
0 files changed, 0 insertions, 0 deletions