Commit bdfacfa8 authored by William Dean's avatar William Dean Committed by Jialin Zhang
Browse files

mtd: devices: docg3: check the return value of devm_ioremap() in the probe

stable inclusion
from stable-v5.10.150
commit f87f720811323a83f701679632b479b1e92fdccd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f87f720811323a83f701679632b479b1e92fdccd



--------------------------------

[ Upstream commit 26e78443 ]

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

Fixes: 82402aeb ("mtd: docg3: Use devm_*() functions")
Reported-by: default avatarHacash Robot <hacashRobot@santino.com>
Signed-off-by: default avatarWilliam Dean <williamsukatube@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220722091644.2937953-1-williamsukatube@163.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 0102291b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment