diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c index 1fbd93bbb561..f9d0eb5647fa 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c | |||
| @@ -52,7 +52,7 @@ acpi_read_fast(void *data, u32 offset, u32 length, struct nvkm_bios *bios) | |||
| 52 | u32 start = offset & ~0x00000fff; | 52 | u32 start = offset & ~0x00000fff; |
| 53 | u32 fetch = limit - start; | 53 | u32 fetch = limit - start; |
| 54 | 54 | ||
| 55 | if (nvbios_extend(bios, limit) > 0) { | 55 | if (nvbios_extend(bios, limit) >= 0) { |
| 56 | int ret = nouveau_acpi_get_bios_chunk(bios->data, start, fetch); | 56 | int ret = nouveau_acpi_get_bios_chunk(bios->data, start, fetch); |
| 57 | if (ret == fetch) | 57 | if (ret == fetch) |
| 58 | return fetch; | 58 | return fetch; |
| @@ -73,7 +73,7 @@ acpi_read_slow(void *data, u32 offset, u32 length, struct nvkm_bios *bios) | |||
| 73 | u32 start = offset & ~0xfff; | 73 | u32 start = offset & ~0xfff; |
| 74 | u32 fetch = 0; | 74 | u32 fetch = 0; |
| 75 | 75 | ||
| 76 | if (nvbios_extend(bios, limit) > 0) { | 76 | if (nvbios_extend(bios, limit) >= 0) { |
| 77 | while (start + fetch < limit) { | 77 | while (start + fetch < limit) { |
| 78 | int ret = nouveau_acpi_get_bios_chunk(bios->data, | 78 | int ret = nouveau_acpi_get_bios_chunk(bios->data, |
| 79 | start + fetch, | 79 | start + fetch, |
