diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2013-09-15 07:48:42 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2013-09-15 07:48:42 +0000 |
commit | a58808dc6268cfb0d6cf50f49dbc0b8f4be0c6fb (patch) | |
tree | d79f8817d5df04b5ffb2de9d09cd2750efd2dc2b /sys/dev/drm2 | |
parent | 9502928062edef4cd855322713095931aec6403b (diff) | |
download | FreeBSD-src-a58808dc6268cfb0d6cf50f49dbc0b8f4be0c6fb.zip FreeBSD-src-a58808dc6268cfb0d6cf50f49dbc0b8f4be0c6fb.tar.gz |
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)
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r-- | sys/dev/drm2/radeon/radeon_bios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm2/radeon/radeon_bios.c b/sys/dev/drm2/radeon/radeon_bios.c index 8f42f9f..ee48268 100644 --- a/sys/dev/drm2/radeon/radeon_bios.c +++ b/sys/dev/drm2/radeon/radeon_bios.c @@ -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); |