summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ts5500_flash.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2021-03-07 19:44:46 -0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 12:01:40 +0100
commit620b90d30c08684dc6ebee07c72755d997f9d1f6 (patch)
treef947b9ee99fc7125af47f2fe3b25a7a12ddf6742 /drivers/mtd/maps/ts5500_flash.c
parentb87b6d2d6f540e29c3f98e1572d64e560d73d6c1 (diff)
downloadlinux-620b90d30c08684dc6ebee07c72755d997f9d1f6.tar.gz
linux-620b90d30c08684dc6ebee07c72755d997f9d1f6.tar.bz2
linux-620b90d30c08684dc6ebee07c72755d997f9d1f6.zip
mtd: maps: fix error return code of physmap_flash_remove()
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: 73566edf9b91 ("[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
Diffstat (limited to 'drivers/mtd/maps/ts5500_flash.c')
0 files changed, 0 insertions, 0 deletions