Skip to content

Commit

Permalink
drm/nouveau/bios: improve error handling when reading the vbios from …
Browse files Browse the repository at this point in the history
…ACPI

Reported-by: Pawel Sikora <pawel.sikora@agmk.net>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Oct 22, 2012
1 parent 2c14575 commit 90e2889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/nouveau/core/subdev/bios/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ nouveau_bios_shadow_acpi(struct nouveau_bios *bios)
int ret, cnt, i;
u8 data[3];

if (!nouveau_acpi_rom_supported(pdev))
if (!nouveau_acpi_rom_supported(pdev)) {
bios->data = NULL;
return;
}

bios->size = 0;
if (nouveau_acpi_get_bios_chunk(data, 0, 3) == 3)
Expand Down

0 comments on commit 90e2889

Please sign in to comment.