mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
stand: Pass in the proper size for bootinfo
Missed one sizeof(bi) -> sizeof(*bi) in9758dd3de1conversion to allocating bootinfo. Noticed by: tijl@ Fixes:9758dd3de1Sponsored by: Netflix
This commit is contained in:
parent
a75d1ddd74
commit
4a676571e3
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ bi_load32(char *args, int *howtop, int *bootdevp, vm_offset_t *bip, vm_offset_t
|
|||
kernelname = getenv("kernelname");
|
||||
i386_getdev(NULL, kernelname, &kernelpath);
|
||||
bi->bi_version = BOOTINFO_VERSION;
|
||||
bi->bi_size = sizeof(bi);
|
||||
bi->bi_size = sizeof(*bi);
|
||||
bi->bi_memsizes_valid = 1;
|
||||
bi->bi_basemem = bios_basemem / 1024;
|
||||
bi->bi_extmem = bios_extmem / 1024;
|
||||
|
|
|
|||
Loading…
Reference in a new issue