Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/amd64/e820.c
Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Lines | e820_finalize(void) | ||||
if (e820_fwcfg_item == NULL) { | if (e820_fwcfg_item == NULL) { | ||||
warnx("invalid e820 table"); | warnx("invalid e820 table"); | ||||
return (ENOMEM); | return (ENOMEM); | ||||
} | } | ||||
error = qemu_fwcfg_add_file("etc/e820", | error = qemu_fwcfg_add_file("etc/e820", | ||||
e820_fwcfg_item->size, e820_fwcfg_item->data); | e820_fwcfg_item->size, e820_fwcfg_item->data); | ||||
if (error != 0) { | if (error != 0) { | ||||
warnx("could not add qemu fwcfg etc/e820"); | warnx("could not add qemu fwcfg etc/e820"); | ||||
free(e820_fwcfg_item->data); | |||||
free(e820_fwcfg_item); | |||||
return (error); | return (error); | ||||
} | } | ||||
free(e820_fwcfg_item); | free(e820_fwcfg_item); | ||||
emaste: what happens with `e820_fwcfg_item->data` in this case? | |||||
jhbUnsubmitted Not Done Inline ActionsThe ownership was handed off to qemu_fwcfg_add_file jhb: The ownership was handed off to `qemu_fwcfg_add_file` | |||||
return (0); | return (0); | ||||
} | } |
what happens with e820_fwcfg_item->data in this case?