Date: Tue, 6 Jul 2010 18:05:05 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209737 - head/sys/dev/fb Message-ID: <201007061805.o66I55IG043913@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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(®s); regs.R_AX = 0x4f04;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007061805.o66I55IG043913>