svn commit: r209737 - head/sys/dev/fb

Jung-uk Kim jkim at FreeBSD.org
Tue Jul 6 18:05:06 UTC 2010


Author: jkim
Date: Tue Jul  6 18:05:05 2010
New Revision: 209737
URL: http://svn.freebsd.org/changeset/base/209737

Log:
  Fix a possible null pointer dereference.  A patch for -STABLE was
  
  Submitted by:	Yamagi Burmeister (lists at yamagi dot org)

Modified:
  head/sys/dev/fb/vesa.c

Modified: head/sys/dev/fb/vesa.c
==============================================================================
--- head/sys/dev/fb/vesa.c	Tue Jul  6 17:20:08 2010	(r209736)
+++ head/sys/dev/fb/vesa.c	Tue Jul  6 18:05:05 2010	(r209737)
@@ -536,6 +536,8 @@ vesa_bios_save_restore(int code, void *p
 		return (1);
 
 	buf = x86bios_alloc(&offs, size, M_NOWAIT);
+	if (buf == NULL)
+		return (1);
 
 	x86bios_init_regs(&regs);
 	regs.R_AX = 0x4f04;


More information about the svn-src-all mailing list