limine: Do not return SMBIOS response if not present

This commit is contained in:
mintsuki 2023-08-10 19:01:07 -05:00
parent 1e9a42e7ce
commit d66df6b38a
1 changed files with 5 additions and 1 deletions

View File

@ -570,7 +570,11 @@ FEAT_START
smbios_response->entry_64 = reported_addr(smbios_entry_64);
}
if (smbios_entry_32 == NULL && smbios_entry_64 == NULL) {
pmm_free(smbios_response, sizeof(struct limine_smbios_response));
} else {
smbios_request->response = reported_addr(smbios_response);
}
FEAT_END
#if defined (UEFI)