Commit 723ae803 authored by Yang Yingliang's avatar Yang Yingliang Committed by Thomas Zimmermann

drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()

Return -ENOMEM when allocating refill memory failed.

Fixes: 71e8831f ("drm/omap: DMM/TILER support for OMAP4+ platform")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117061045.3452287-1-yangyingliang@huawei.com
parent 96fb3cbe
......@@ -889,6 +889,7 @@ static int omap_dmm_probe(struct platform_device *dev)
&omap_dmm->refill_pa, GFP_KERNEL);
if (!omap_dmm->refill_va) {
dev_err(&dev->dev, "could not allocate refill memory\n");
ret = -ENOMEM;
goto fail;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment