mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-17 14:06:12 +07:00
drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()
[ Upstream commit 723ae803218da993143387bf966042eccefac077 ]
Return -ENOMEM when allocating refill memory failed.
Fixes: 71e8831f64
("drm/omap: DMM/TILER support for OMAP4+ platform")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117061045.3452287-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b9e069283b
commit
b087cb814d
@ -889,6 +889,7 @@ static int omap_dmm_probe(struct platform_device *dev)
|
|||||||
&omap_dmm->refill_pa, GFP_KERNEL);
|
&omap_dmm->refill_pa, GFP_KERNEL);
|
||||||
if (!omap_dmm->refill_va) {
|
if (!omap_dmm->refill_va) {
|
||||||
dev_err(&dev->dev, "could not allocate refill memory\n");
|
dev_err(&dev->dev, "could not allocate refill memory\n");
|
||||||
|
ret = -ENOMEM;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user