Skip to content

Commit 6150f27

Browse files
Kyle Copperfieldmchehab
authored andcommitted
media: rockchip/rga: do proper error checking in probe
The latest fix for probe error handling contained a typo that causes probing to fail with the following message: rockchip-rga: probe of ff680000.rga failed with error -12 This patch fixes the typo. Fixes: e58430e (media: rockchip/rga: fix error handling in probe) Reviewed-by: Dragan Simic <dragan.simic@gmail.com> Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.me> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 3123109 commit 6150f27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/media/platform/rockchip/rga

drivers/media/platform/rockchip/rga/rga.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ static int rga_probe(struct platform_device *pdev)
892892
}
893893
rga->dst_mmu_pages =
894894
(unsigned int *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 3);
895-
if (rga->dst_mmu_pages) {
895+
if (!rga->dst_mmu_pages) {
896896
ret = -ENOMEM;
897897
goto free_src_pages;
898898
}

0 commit comments

Comments
 (0)