Skip to content

Commit b087cb8

Browse files
Yang Yinglianggregkh
authored andcommitted
drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()
[ 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>
1 parent b9e0692 commit b087cb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpu/drm/omapdrm/omap_dmm_tiler.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ static int omap_dmm_probe(struct platform_device *dev)
889889
&omap_dmm->refill_pa, GFP_KERNEL);
890890
if (!omap_dmm->refill_va) {
891891
dev_err(&dev->dev, "could not allocate refill memory\n");
892+
ret = -ENOMEM;
892893
goto fail;
893894
}
894895

0 commit comments

Comments
 (0)