Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 2c14575f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)