Commit 90e2889c authored by Martin Peres's avatar Martin Peres Committed by Ben Skeggs

drm/nouveau/bios: improve error handling when reading the vbios from ACPI

Reported-by: default avatarPawel Sikora <pawel.sikora@agmk.net>
Signed-off-by: default avatarMartin Peres <martin.peres@labri.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 2c14575f
...@@ -188,8 +188,10 @@ nouveau_bios_shadow_acpi(struct nouveau_bios *bios) ...@@ -188,8 +188,10 @@ nouveau_bios_shadow_acpi(struct nouveau_bios *bios)
int ret, cnt, i; int ret, cnt, i;
u8 data[3]; u8 data[3];
if (!nouveau_acpi_rom_supported(pdev)) if (!nouveau_acpi_rom_supported(pdev)) {
bios->data = NULL;
return; return;
}
bios->size = 0; bios->size = 0;
if (nouveau_acpi_get_bios_chunk(data, 0, 3) == 3) if (nouveau_acpi_get_bios_chunk(data, 0, 3) == 3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment