aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/vesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index 25a60e59babcb..a039aee8baf4d 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -536,6 +536,8 @@ vesa_bios_save_restore(int code, void *p, size_t size)
return (1);
buf = x86bios_alloc(&offs, size, M_NOWAIT);
+ if (buf == NULL)
+ return (1);
x86bios_init_regs(&regs);
regs.R_AX = 0x4f04;