Skip to content

Commit

Permalink
limine: Do not return SMBIOS response if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Aug 11, 2023
1 parent 49b27fc commit 0baf774
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/protos/limine.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,11 @@ FEAT_START
smbios_response->entry_64 = reported_addr(smbios_entry_64);
}

smbios_request->response = reported_addr(smbios_response);
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)
Expand Down

0 comments on commit 0baf774

Please sign in to comment.