linux/drivers/mtd/maps
Ricardo Ribalda Delgado 53772af08a mtd: maps: gpio-addr-flash: Fix ioremapped size
commit 6c925b3333 upstream.

We should only iomap the area of the chip that is memory mapped.
Otherwise we could be mapping devices beyond the memory space or that
belong to other devices.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Fixes: ebd71e3a48 ("mtd: maps: gpio-addr-flash: fix warnings and make more portable")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-13 11:08:14 -08:00
..
amd76xrom.c
cfi_flagadm.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
ck804xrom.c
dc21285.c
esb2rom.c
gpio-addr-flash.c mtd: maps: gpio-addr-flash: Fix ioremapped size 2018-11-13 11:08:14 -08:00
ichxrom.c
impa7.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
intel_vr_nor.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
ixp4xx.c
Kconfig mtd: Make Kconfig formatting consistent 2018-07-19 23:12:06 +02:00
l440gx.c
lantiq-flash.c
latch-addr-flash.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
Makefile mtd: maps: remove bfin-async-flash driver 2018-03-21 09:50:57 +01:00
map_funcs.c
netsc520.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
nettel.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
pci.c
pcmciamtd.c
physmap_of_core.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
physmap_of_gemini.c
physmap_of_gemini.h
physmap_of_versatile.c
physmap_of_versatile.h
physmap.c
pismo.c mtd: maps: pismo: Remove owner assignment from i2c_driver 2018-05-03 11:42:31 +02:00
plat-ram.c mtd: plat-ram: Replace manual resource management by devm 2017-11-06 23:26:01 +01:00
pmcmsp-flash.c
pxa2xx-flash.c
rbtx4939-flash.c mtd: maps: use mtd_device_register() where applicable 2018-07-18 16:32:36 +02:00
sa1100-flash.c
sbc_gxx.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c mtd/maps: fix solutionengine.c printk format warnings 2018-07-24 22:43:10 +02:00
sun_uflash.c
ts5500_flash.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
tsunami_flash.c
uclinux.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
vmu-flash.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00