Module Name: src
Committed By: riastradh
Date: Tue Aug 14 14:53:21 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/linux: linux_writecomb.c
Log Message:
Initialize n before mtrr_set in arch_phys_wc_del.
>From mrg@.
XXX pullup-7
XXX pullup-8
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/linux/linux_writecomb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/linux/linux_writecomb.c
diff -u src/sys/external/bsd/drm2/linux/linux_writecomb.c:1.5 src/sys/external/bsd/drm2/linux/linux_writecomb.c:1.6
--- src/sys/external/bsd/drm2/linux/linux_writecomb.c:1.5 Tue Aug 14 14:53:11 2018
+++ src/sys/external/bsd/drm2/linux/linux_writecomb.c Tue Aug 14 14:53:21 2018
@@ -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 @@ arch_phys_wc_del(int id)
{
#if defined(MTRR)
struct mtrr *mtrr;
- int n;
+ int n = 1;
int ret __diagused;
KASSERT(0 <= id);