Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use unsigned to avoid undefined behavior. Found ...
details: https://anonhg.NetBSD.org/src/rev/682e06c0cf4a
branches: trunk
changeset: 983997:682e06c0cf4a
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jun 17 02:05:47 2021 +0000
description:
Use unsigned to avoid undefined behavior. Found by kUBSan.
diffstat:
sys/dev/pci/if_iwnreg.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ff2306222706 -r 682e06c0cf4a sys/dev/pci/if_iwnreg.h
--- a/sys/dev/pci/if_iwnreg.h Thu Jun 17 01:16:55 2021 +0000
+++ b/sys/dev/pci/if_iwnreg.h Thu Jun 17 02:05:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwnreg.h,v 1.17 2017/07/19 16:55:12 mlelstv Exp $ */
+/* $NetBSD: if_iwnreg.h,v 1.18 2021/06/17 02:05:47 msaitoh Exp $ */
/* $OpenBSD: if_iwnreg.h,v 1.49 2014/09/09 18:56:24 sthen Exp $ */
/*-
@@ -244,7 +244,7 @@
/* Possible flags for register IWN_DRAM_INT_TBL. */
#define IWN_DRAM_INT_TBL_WRAP_CHECK (1 << 27)
-#define IWN_DRAM_INT_TBL_ENABLE (1 << 31)
+#define IWN_DRAM_INT_TBL_ENABLE (1U << 31)
/* Possible values for register IWN_ANA_PLL. */
#define IWN_ANA_PLL_INIT 0x00880300
@@ -267,7 +267,7 @@
#define IWN_INT_FH_TX (1 << 27)
#define IWN_INT_RX_PERIODIC (1 << 28)
#define IWN_INT_HW_ERR (1 << 29)
-#define IWN_INT_FH_RX (1 << 31)
+#define IWN_INT_FH_RX (1U << 31)
/* Shortcut. */
#define IWN_INT_MASK_DEF \
Home |
Main Index |
Thread Index |
Old Index