From c8c0bd5dc5a2cc411fbc9174a419481b95b9ed2e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 26 Jan 2023 11:49:47 +0100 Subject: [PATCH] display: Check if FB IOVA is available on dart-disp0 Fixes a copy and paste error in 1b5dee24964e checking dart-dcp twice. Fixes: 1b5dee24964e ("display: Map the framebuffer if it is not mapped") Signed-off-by: Janne Grunau --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 4bacfa15..3dbf49ea 100644 --- a/src/display.c +++ b/src/display.c @@ -126,7 +126,7 @@ static uintptr_t display_map_fb(uintptr_t iova, u64 paddr, u64 size) } // try to map the fb to the same IOVA on disp0 - iova_disp0 = dart_find_iova(dcp->dart_dcp, iova_dcp, size); + iova_disp0 = dart_find_iova(dcp->dart_disp, iova_dcp, size); if (DART_IS_ERR(iova_disp0)) { printf("display: failed to find IOVA for fb of %06zx bytes (disp0)\n", size); return iova_disp0;