aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-07-06 18:05:05 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-07-06 18:05:05 +0000
commitc3cbd4125e70c2d82c008df6314c9bf866e583ae (patch)
treed671c36f3d6f71ba49c12c818bcc29f6c208f687
parentf59646c2af7ad53dc7f8579e5b93c75620bab2cf (diff)
Notes
-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;