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/linux Initialize n before mtrr_set in ...



details:   https://anonhg.NetBSD.org/src/rev/cca3c3e0dfa6
branches:  trunk
changeset: 365427:cca3c3e0dfa6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Aug 14 14:53:21 2018 +0000

description:
Initialize n before mtrr_set in arch_phys_wc_del.

>From mrg@.

XXX pullup-7
XXX pullup-8

diffstat:

 sys/external/bsd/drm2/linux/linux_writecomb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c9eb7bc6a636 -r cca3c3e0dfa6 sys/external/bsd/drm2/linux/linux_writecomb.c
--- a/sys/external/bsd/drm2/linux/linux_writecomb.c     Tue Aug 14 14:53:11 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_writecomb.c     Tue Aug 14 14:53:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_writecomb.c,v 1.5 2018/08/14 14:53:11 riastradh Exp $    */
+/*     $NetBSD: linux_writecomb.c,v 1.6 2018/08/14 14:53:21 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.5 2018/08/14 14:53:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.6 2018/08/14 14:53:21 riastradh Exp $");
 
 #if defined(__i386__) || defined(__x86_64__)
 #define HAS_MTRR 1
@@ -128,7 +128,7 @@
 {
 #if defined(MTRR)
        struct mtrr *mtrr;
-       int n;
+       int n = 1;
        int ret __diagused;
 
        KASSERT(0 <= id);



Home | Main Index | Thread Index | Old Index