2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/mtd/chips
Joakim Tjernlund ecf3fde07c 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
2011-03-11 12:09:07 +00:00
..
cfi_cmdset_0001.c mtd: fix race in cfi_cmdset_0001 driver 2011-03-11 12:09:07 +00:00
cfi_cmdset_0002.c mtd: cfi: add writebufsize initialization 2011-01-06 15:35:53 +00:00
cfi_cmdset_0020.c mtd: cfi: add writebufsize initialization 2011-01-06 15:35:53 +00:00
cfi_probe.c mtd: cfi_cmdset_0002: make sector erase command variable 2010-10-26 11:39:17 +01:00
cfi_util.c mtd: cfi_fixup: remove unused 'param' parameter 2010-12-03 16:31:00 +00:00
chipreg.c mtd: Remove obsolete <mtd/compatmac.h> include 2010-08-08 21:19:42 +01:00
fwh_lock.h mtd: cfi_fixup: remove unused 'param' parameter 2010-12-03 16:31:00 +00:00
gen_probe.c mtd: cfi_cmdset_0002: use AMD standard command-set with Winbond flash chips 2010-05-20 16:57:00 +01:00
jedec_probe.c mtd: jedec_probe: initialise make sector erase command variable 2011-03-11 12:05:54 +00:00
Kconfig Revert "mtd: cleanup Kconfig dependencies" 2010-10-26 11:42:51 +01: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 obsolete <mtd/compatmac.h> include 2010-08-08 21:19:42 +01:00
map_ram.c mtd: Remove obsolete <mtd/compatmac.h> include 2010-08-08 21:19:42 +01:00
map_rom.c mtd: Remove obsolete <mtd/compatmac.h> include 2010-08-08 21:19:42 +01:00