mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
drm/radeon: Add missing "return false" after unmapping invalid BIOS
Without that, we would try to copy the unmapped BIOS. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: re (blanket)
This commit is contained in:
parent
ebc5657f89
commit
c8b8d6b96e
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ static bool radeon_read_bios(struct radeon_device *rdev)
|
|||
__func__, bios[0], bios[1]);
|
||||
}
|
||||
vga_pci_unmap_bios(vga_dev, bios);
|
||||
return false;
|
||||
}
|
||||
rdev->bios = malloc(size, DRM_MEM_DRIVER, M_WAITOK);
|
||||
memcpy(rdev->bios, bios, size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue