Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/external/bsd/drm2/dist/drm/radeon Pull up following r...



details:   https://anonhg.NetBSD.org/src/rev/21292f6338d9
branches:  netbsd-7
changeset: 799520:21292f6338d9
user:      snj <snj%NetBSD.org@localhost>
date:      Thu Jul 30 16:29:38 2015 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #911):
        sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c: revision 1.3
Fix two issues in NetBSD implementation of igp_read_bios_from_vram():
 * Allocate the correct buffer for the VGA BIOS image.
 * Abort if buffer allocation failed, not if buffer allocation succeeded.
Not directly tested, but I can't imagine this makes anything worse.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3ba9e9ae2a81 -r 21292f6338d9 sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c       Thu Jul 30 16:03:12 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c       Thu Jul 30 16:29:38 2015 +0000
@@ -72,7 +72,7 @@
            (size < 256 * 1024) ||
            (bus_space_read_1(bst, bsh, 0) != 0x55) ||
            (bus_space_read_1(bst, bsh, 1) != 0xaa) ||
-           ((rdev = kmalloc(size, GFP_KERNEL)) != NULL)) {
+           ((rdev->bios = kmalloc(size, GFP_KERNEL)) == NULL)) {
                bus_space_unmap(bst, bsh, size);
                return false;
        }



Home | Main Index | Thread Index | Old Index