diff options
author | 2015-11-22 00:42:24 +0000 | |
---|---|---|
committer | 2015-11-22 00:42:24 +0000 | |
commit | c0b3914c2923517eca41551f31d300e543053102 (patch) | |
tree | 1d1663ccbced5705069bcf487e5aea0dd3f9b01a | |
parent | Remove commented-out BUGS section that directs reports to long-extinct (diff) | |
download | wireguard-openbsd-c0b3914c2923517eca41551f31d300e543053102.tar.xz wireguard-openbsd-c0b3914c2923517eca41551f31d300e543053102.zip |
fix uninitialised variable use in nep_rx_proc()
ok kettenis@
-rw-r--r-- | sys/dev/pci/if_nep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nep.c b/sys/dev/pci/if_nep.c index 0af16e780bf..42dc08b30bd 100644 --- a/sys/dev/pci/if_nep.c +++ b/sys/dev/pci/if_nep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nep.c,v 1.21 2015/11/20 03:35:23 dlg Exp $ */ +/* $OpenBSD: if_nep.c,v 1.22 2015/11/22 00:42:24 jsg Exp $ */ /* * Copyright (c) 2014, 2015 Mark Kettenis * @@ -977,7 +977,7 @@ nep_rx_proc(struct nep_softc *sc) struct mbuf_list ml = MBUF_LIST_INITIALIZER(); uint64_t val; uint16_t count; - uint16_t pktread, ptrread; + uint16_t pktread = 0, ptrread = 0; uint64_t rxd; uint64_t addr; bus_addr_t page; |