[PATCH] mtd: maps: fix error return code of physmap_flash_remove()

Miquel Raynal miquel.raynal at bootlin.com
Thu Mar 11 11:39:05 GMT 2021


On Mon, 2021-03-08 at 03:44:46 UTC, Jia-Ju Bai wrote:
> 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 at tsinghua.edu.cn>
> Signed-off-by: Jia-Ju Bai <baijiaju1990 at gmail.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list