From 08115728891057670f72ec67c94454c13faf225e Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Fri, 3 Jan 2020 02:53:16 +0000 Subject: [PATCH] thermosphere: fix truncation in vgicCleanupPendingList --- thermosphere/src/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermosphere/src/vgic.c b/thermosphere/src/vgic.c index 03d7104d1..935e3b26c 100644 --- a/thermosphere/src/vgic.c +++ b/thermosphere/src/vgic.c @@ -651,7 +651,7 @@ static void vgicCleanupPendingList(void) // Note: we can't touch PPIs for other cores... but each core will call this function anyway. if (id >= 32 || coreId == currentCoreCtx->coreId) { - u8 mask = g_irqManager.gic.gicd->ispendr[id / 32] & BIT(id % 32); + u32 mask = g_irqManager.gic.gicd->ispendr[id / 32] & BIT(id % 32); if (mask == 0) { g_irqManager.gic.gicd->icactiver[id / 32] = mask; pending = false;