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:
Jean-Sébastien Pédron 2013-09-15 07:48:42 +00:00
parent ebc5657f89
commit c8b8d6b96e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255587

View File

@ -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);