Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Do not use the "flags" field uninitialized
details: https://anonhg.NetBSD.org/src/rev/86c68b02abc1
branches: trunk
changeset: 350273:86c68b02abc1
user: khorben <khorben%NetBSD.org@localhost>
date: Mon Jan 09 10:42:45 2017 +0000
description:
Do not use the "flags" field uninitialized
A backport if iwm(4) (to netbsd-7) does not build without this change.
LGTM nonaka@
diffstat:
sys/dev/pci/if_iwm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 5792022992f0 -r 86c68b02abc1 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Mon Jan 09 09:54:34 2017 +0000
+++ b/sys/dev/pci/if_iwm.c Mon Jan 09 10:42:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.54 2017/01/09 09:15:54 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.55 2017/01/09 10:42:45 khorben Exp $ */
/* OpenBSD: if_iwm.c,v 1.147 2016/11/17 14:12:33 stsp Exp */
#define IEEE80211_NO_HT
/*
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.54 2017/01/09 09:15:54 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.55 2017/01/09 10:42:45 khorben Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -4500,6 +4500,8 @@
struct iwm_device_power_cmd cmd = {
#ifdef notyet
.flags = htole16(IWM_DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK),
+#else
+ .flags = 0,
#endif
};
Home |
Main Index |
Thread Index |
Old Index