* Switched rockchip64-current to linux 5.15 * Backported and adjusted patches from rockchip64-current * Switched rockchip64 edge to 5.16.y (#3499) * Initial rockchip64-edge at 5.16.y * Bunch of fixes for rockchip64-edge at 5.16.y Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
14 lines
495 B
Diff
14 lines
495 B
Diff
diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c
|
|
index 6759091b1..d99ea8973 100644
|
|
--- a/drivers/media/platform/rockchip/rga/rga.c
|
|
+++ b/drivers/media/platform/rockchip/rga/rga.c
|
|
@@ -895,7 +895,7 @@ static int rga_probe(struct platform_device *pdev)
|
|
}
|
|
rga->dst_mmu_pages =
|
|
(unsigned int *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 3);
|
|
- if (rga->dst_mmu_pages) {
|
|
+ if (!rga->dst_mmu_pages) {
|
|
ret = -ENOMEM;
|
|
goto free_src_pages;
|
|
}
|