tmp_suning_uos_patched/drivers/mtd/chips
Joakim Tjernlund 5fdfc3dbad mtd: cfi_cmdset_0002: fix SEGV unlocking multiple chips
cfi_ppb_unlock() tries to relock all sectors that were locked before
unlocking the whole chip.
This locking used the chip start address + the FULL offset from the
first flash chip, thereby forming an illegal address. Fix that by using
the chip offset(adr).

Fixes: 1648eaaa15 ("mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking")
Cc: stable@vger.kernel.org
Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-06-22 00:35:31 +02:00
..
cfi_cmdset_0001.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cfi_cmdset_0002.c mtd: cfi_cmdset_0002: fix SEGV unlocking multiple chips 2018-06-22 00:35:31 +02:00
cfi_cmdset_0020.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
cfi_probe.c mtd: cfi: Add early fixup for S70GL02GS 2018-05-04 09:52:38 +02:00
cfi_util.c mtd: cfi: deinline large functions 2015-05-27 12:42:16 -07:00
chipreg.c
fwh_lock.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gen_probe.c mtd: gen_probe: Remove unnecessary OOM messages 2014-03-10 22:42:25 -07:00
jedec_probe.c MTD changes: 2018-04-06 12:15:41 -07:00
Kconfig mtd: avoid stack overflow in MTD CFI code 2016-04-03 16:46:24 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
map_absent.c
map_ram.c mtd: Stop updating erase_info->state and calling mtd_erase_callback() 2018-03-21 09:50:56 +01:00
map_rom.c mtd: remove the get_unmapped_area method 2017-11-13 21:39:18 +01:00