Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon add missing memset in ...



details:   https://anonhg.NetBSD.org/src/rev/90a38820be7a
branches:  trunk
changeset: 968573:90a38820be7a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jan 20 23:22:09 2020 +0000

description:
add missing memset in radeon_gart_table_ram_alloc

diffstat:

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

diffs (27 lines):

diff -r 52a0717c6816 -r 90a38820be7a sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c       Mon Jan 20 22:25:07 2020 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_gart.c       Mon Jan 20 23:22:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_gart.c,v 1.10 2018/08/27 13:56:22 riastradh Exp $       */
+/*     $NetBSD: radeon_gart.c,v 1.11 2020/01/20 23:22:09 jmcneill Exp $        */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_gart.c,v 1.10 2018/08/27 13:56:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_gart.c,v 1.11 2020/01/20 23:22:09 jmcneill Exp $");
 
 #include <drm/drmP.h>
 #include <drm/radeon_drm.h>
@@ -93,6 +93,8 @@
        if (error)
                goto fail3;
 
+       memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size);
+
        /* Success!  */
        rdev->gart.table_addr = rdev->gart.rg_table_map->dm_segs[0].ds_addr;
        return 0;



Home | Main Index | Thread Index | Old Index