[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210311113905.305884-1-miquel.raynal@bootlin.com>
Date: Thu, 11 Mar 2021 12:39:05 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Jia-Ju Bai <baijiaju1990@...il.com>, miquel.raynal@...tlin.com,
richard@....at, vigneshr@...com, chris.packham@...iedtelesis.co.nz,
Sergey.Semin@...kalelectronics.ru
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: maps: fix error return code of physmap_flash_remove()
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@...nghua.edu.cn>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@...il.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
Powered by blists - more mailing lists