diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 00:42:25 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 00:42:25 +0000 |
commit | 43c1821021bf5777aacc85bde2057d113b784b4a (patch) | |
tree | d65484fd065ed44630c1f6bf3c5779dfb36ad0aa | |
parent | 8cd2f26ba183f6c29e3bba803a01eb7e1a831530 (diff) |
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; |