[PATCH] mtd: check the return value of devm_ioremap() in docg3_probe()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Sep 19 09:16:12 PDT 2022
On Fri, 2022-07-22 at 09:16:44 UTC, williamsukatube at 163.com wrote:
> From: William Dean <williamsukatube at gmail.com>
>
> The function devm_ioremap() in docg3_probe() can fail, so
> its return value should be checked.
>
> Fixes: 82402aeb8c81e ("mtd: docg3: Use devm_*() functions")
> Reported-by: Hacash Robot <hacashRobot at santino.com>
> Signed-off-by: William Dean <williamsukatube 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