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/i915 Initialize kva hint for ...



details:   https://anonhg.NetBSD.org/src/rev/a4af4f61bf8e
branches:  trunk
changeset: 992882:a4af4f61bf8e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:43:12 2018 +0000

description:
Initialize kva hint for uvm_map to avoid using uninitialized memory.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem_render_state.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8268c994c6ab -r a4af4f61bf8e sys/external/bsd/drm2/dist/drm/i915/i915_gem_render_state.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem_render_state.c       Mon Aug 27 13:43:05 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem_render_state.c       Mon Aug 27 13:43:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_render_state.c,v 1.5 2018/08/27 07:19:01 riastradh Exp $      */
+/*     $NetBSD: i915_gem_render_state.c,v 1.6 2018/08/27 13:43:12 riastradh Exp $      */
 
 /*
  * Copyright © 2014 Intel Corporation
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_render_state.c,v 1.5 2018/08/27 07:19:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_render_state.c,v 1.6 2018/08/27 13:43:12 riastradh Exp $");
 
 #include "i915_drv.h"
 #include "intel_renderstate.h"
@@ -101,7 +101,7 @@
        const struct intel_renderstate_rodata *rodata = so->rodata;
        unsigned int i = 0, reloc_index = 0;
 #ifdef __NetBSD__
-       vaddr_t kva;
+       vaddr_t kva = 0;        /* hint */
 #else
        struct page *page;
 #endif



Home | Main Index | Thread Index | Old Index