Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci CID-1427779: Fix uninitialized variables
details: https://anonhg.NetBSD.org/src/rev/b68c5f5341d0
branches: trunk
changeset: 358879:b68c5f5341d0
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 21 04:07:49 2018 +0000
description:
CID-1427779: Fix uninitialized variables
diffstat:
sys/dev/pci/if_wm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5da9b300c401 -r b68c5f5341d0 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Sun Jan 21 01:18:48 2018 +0000
+++ b/sys/dev/pci/if_wm.c Sun Jan 21 04:07:49 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.557 2018/01/18 09:36:26 knakahara Exp $ */
+/* $NetBSD: if_wm.c,v 1.558 2018/01/21 04:07:49 christos Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.557 2018/01/18 09:36:26 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.558 2018/01/21 04:07:49 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -12589,7 +12589,7 @@
case WM_T_82575:
case WM_T_82576:
case WM_T_82580:
- if ((uid1 & NVM_MAJOR_MASK) != NVM_UID_VALID)
+ if (have_uid && (uid1 & NVM_MAJOR_MASK) != NVM_UID_VALID)
check_version = true;
break;
case WM_T_I211:
Home |
Main Index |
Thread Index |
Old Index