Cast to unsigned integer before overflow can happen.
authorbluhm <bluhm@openbsd.org>
Thu, 27 Jan 2022 18:28:44 +0000 (18:28 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 27 Jan 2022 18:28:44 +0000 (18:28 +0000)
commit109b20f85cf3ce66ab2226c9f62ed0f65a76a605
treec79262674580cf29bf0fa7cddcbe497dc78daef2
parenta9c62938e890005d21c9f938e05ae1c7be55015d
Cast to unsigned integer before overflow can happen.
found by kubsan; joint work with tobhe@; OK miod@
sys/dev/pci/if_em_hw.c
sys/dev/pci/if_ix.c
sys/dev/pci/ixgbe.c
sys/dev/pci/ixgbe_82598.c