Fix a possible null pointer dereference. A patch for -STABLE was
Submitted by: Yamagi Burmeister (lists at yamagi dot org)
This commit is contained in:
parent
f59646c2af
commit
c3cbd4125e
@ -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(®s);
|
||||
regs.R_AX = 0x4f04;
|
||||
|
Loading…
Reference in New Issue
Block a user