[Openpvrsgx-devgroup] [PATCH] pvrsrv: 1.17: fix compilation in debug mode
Anthoine Bourgeois
anthoine.bourgeois at gmail.com
Thu Jul 7 23:27:52 CEST 2022
This patch protect sTimerRegPhysBase deref in the debug version of
ReleaseGPTimer function.
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois at gmail.com>
---
.../eurasia_km/services4/system/omap/sysutils_linux.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/system/omap/sysutils_linux.c b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/system/omap/sysutils_linux.c
index 58936b665d93..75910dbb294a 100644
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/system/omap/sysutils_linux.c
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/system/omap/sysutils_linux.c
@@ -531,12 +531,14 @@ static void ReleaseGPTimer(SYS_SPECIFIC_DATA *psSysSpecData)
{
return;
}
-#endif
/* Disable the timer */
pui32TimerDisable = OSMapPhysToLin(psSysSpecData->sTimerRegPhysBase,
4,
PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
&hTimerDisable);
+#else
+ pui32TimerDisable = IMG_NULL;
+#endif
if (pui32TimerDisable == IMG_NULL)
{
--
2.35.1
More information about the openpvrsgx-devgroup
mailing list