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/c5efeaf06156
branches:  trunk
changeset: 363894:c5efeaf06156
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 91b2e1df1025 -r c5efeaf06156 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