Skip to content

Commit

Permalink
drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()
Browse files Browse the repository at this point in the history
[ Upstream commit 723ae80 ]

Return -ENOMEM when allocating refill memory failed.

Fixes: 71e8831 ("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>
  • Loading branch information
Yang Yingliang authored and gregkh committed Dec 30, 2020
1 parent e8cd88c commit 86398df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
Expand Up @@ -891,6 +891,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;
}

Expand Down

0 comments on commit 86398df

Please sign in to comment.