mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue