summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2020-04-24 07:28:37 +0000
committermestre <mestre@openbsd.org>2020-04-24 07:28:37 +0000
commite40f4c49cffc45fdbe7a9258e92f70a1c08c01b1 (patch)
treeaad6aa99e5d5db085acacf8f21ce824c118394df
parentFix incorrect error message for "too many known hosts files." bz#3149, patch (diff)
downloadwireguard-openbsd-e40f4c49cffc45fdbe7a9258e92f70a1c08c01b1.tar.xz
wireguard-openbsd-e40f4c49cffc45fdbe7a9258e92f70a1c08c01b1.zip
Fix typo which could lead into a double free
CID 1492713 OK deraadt@ jmatthew@
-rw-r--r--sys/dev/pci/if_mcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index 8edbd98b45f..85b4a6af366 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.43 2020/04/21 05:49:25 jmatthew Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.44 2020/04/24 07:28:37 mestre Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -6023,7 +6023,7 @@ mcx_up(struct mcx_softc *sc)
return ENETRESET;
destroy_tx_slots:
mcx_free_slots(sc, sc->sc_tx_slots, i, (1 << MCX_LOG_SQ_SIZE));
- sc->sc_rx_slots = NULL;
+ sc->sc_tx_slots = NULL;
i = (1 << MCX_LOG_RQ_SIZE);
destroy_rx_slots: