summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dickman <daniel@cvs.openbsd.org>2019-10-16 00:16:36 +0000
committerDaniel Dickman <daniel@cvs.openbsd.org>2019-10-16 00:16:36 +0000
commit6e5ffde79ceb434344be8d5ec9109ad7f7e8034e (patch)
tree6f716275d200dd62bd21adfd5ee36a4cdc5cca87
parent334d00429435c8a2b1b04133e1fe7ffdc6477d71 (diff)
Fix reversed gotos; CID 1453190.
ok jmatthew@
-rw-r--r--sys/dev/pci/qle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index 561673fe271..fe9475fc334 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.46 2019/08/20 22:31:28 krw Exp $ */
+/* $OpenBSD: qle.c,v 1.47 2019/10/16 00:16:35 daniel Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -2900,13 +2900,13 @@ qle_alloc_ccbs(struct qle_softc *sc)
sc->sc_pri_requests = qle_dmamem_alloc(sc, 8 * QLE_QUEUE_ENTRY_SIZE);
if (sc->sc_pri_requests == NULL) {
printf("%s: unable to allocate pri ccb dmamem\n", DEVNAME(sc));
- goto free_pri;
+ goto free_res;
}
sc->sc_segments = qle_dmamem_alloc(sc, sc->sc_maxcmds * QLE_MAX_SEGS *
sizeof(struct qle_iocb_seg));
if (sc->sc_segments == NULL) {
printf("%s: unable to allocate iocb segments\n", DEVNAME(sc));
- goto free_res;
+ goto free_pri;
}
sc->sc_fcp_cmnds = qle_dmamem_alloc(sc, sc->sc_maxcmds *