diff options
Diffstat (limited to 'arch/x86/platform/efi/efi-bgrt.c')
| -rw-r--r-- | arch/x86/platform/efi/efi-bgrt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/efi-bgrt.c b/arch/x86/platform/efi/efi-bgrt.c index f6a0c1b8e518..d9c1b95af17c 100644 --- a/arch/x86/platform/efi/efi-bgrt.c +++ b/arch/x86/platform/efi/efi-bgrt.c | |||
| @@ -39,6 +39,8 @@ void efi_bgrt_init(void) | |||
| 39 | if (ACPI_FAILURE(status)) | 39 | if (ACPI_FAILURE(status)) |
| 40 | return; | 40 | return; |
| 41 | 41 | ||
| 42 | if (bgrt_tab->header.length < sizeof(*bgrt_tab)) | ||
| 43 | return; | ||
| 42 | if (bgrt_tab->version != 1) | 44 | if (bgrt_tab->version != 1) |
| 43 | return; | 45 | return; |
| 44 | if (bgrt_tab->image_type != 0 || !bgrt_tab->image_address) | 46 | if (bgrt_tab->image_type != 0 || !bgrt_tab->image_address) |
