]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: devices: docg3: check the return value of devm_ioremap() in the probe
authorWilliam Dean <williamsukatube@gmail.com>
Fri, 22 Jul 2022 09:16:44 +0000 (17:16 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Sep 2022 16:14:38 +0000 (18:14 +0200)
commit5d07d8eaf37218116c38005628f9ba16cb59c030
tree5be93127f9cfb35ad9b46292a4c90b1b19fae50a
parent6bca11924d0e91ae7320716e945197c83356a57b
mtd: devices: docg3: check the return value of devm_ioremap() in the probe

The function devm_ioremap() in docg3_probe() can fail, so
its return value should be checked.

Fixes: 2cd5ed3fe86fe ("mtd: docg3: Use devm_*() functions")
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: William Dean <williamsukatube@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220722091644.2937953-1-williamsukatube@163.com
drivers/mtd/devices/docg3.c