kernel_optimize_test/drivers/mtd/maps
Jia-Ju Bai 5133b4bdc9 mtd: maps: fix error return code of physmap_flash_remove()
[ Upstream commit 620b90d30c08684dc6ebee07c72755d997f9d1f6 ]

When platform_get_drvdata() returns NULL to info, no error return code
of physmap_flash_remove() is assigned.
To fix this bug, err is assigned with -EINVAL in this case

Fixes: 73566edf9b ("[MTD] Convert physmap to platform driver")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210308034446.3052-1-baijiaju1990@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:09 +02:00
..
amd76xrom.c
cfi_flagadm.c
ck804xrom.c
dc21285.c
esb2rom.c
ichxrom.c
impa7.c
intel_vr_nor.c
ixp4xx.c
Kconfig
l440gx.c
lantiq-flash.c
Makefile
map_funcs.c
netsc520.c
nettel.c
pci.c
pcmciamtd.c
physmap-bt1-rom.c
physmap-bt1-rom.h
physmap-core.c
physmap-gemini.c
physmap-gemini.h
physmap-ixp4xx.c
physmap-ixp4xx.h
physmap-versatile.c
physmap-versatile.h
pismo.c
plat-ram.c
pmcmsp-flash.c
pxa2xx-flash.c
rbtx4939-flash.c
sa1100-flash.c
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c
sun_uflash.c
ts5500_flash.c
tsunami_flash.c
uclinux.c
vmu-flash.c