aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/interrupts/isr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/interrupts/isr.c')
-rw-r--r--src/kernel/interrupts/isr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c
index c34d951..2f134c1 100644
--- a/src/kernel/interrupts/isr.c
+++ b/src/kernel/interrupts/isr.c
@@ -119,7 +119,7 @@ void fault_handler(struct regs *r)
strcat(message, " Exception");
// Show message if there wasn't an error in video memory
- if (faulting_address != (uint32_t)fb)
+ if (faulting_address != (uint32_t)fb || fb == 0)
panic(message);
else
halt_loop();