summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-03-16 15:36:46 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-03-16 15:36:46 +0000
commit1b2bc1477757e869f983763c21440b2f5305958c (patch)
treee9370b9bf7500d5a54acbe52edc9e905f7e2a8b2 /sys/dev
parent3b096878d3cb7a9bf78ae17c20da2ee15622b8c4 (diff)
Add missing "goto fail;" in an error path of fxp_attach().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/fxp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index 27d801aa4a3..5c039d8ef06 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.84 2006/12/26 17:02:09 krw Exp $ */
+/* $OpenBSD: fxp.c,v 1.85 2007/03/16 15:36:45 claudio Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -377,6 +377,7 @@ fxp_attach(struct fxp_softc *sc, const char *intrstr)
bus_dmamem_unmap(sc->sc_dmat, (caddr_t)sc->sc_ctrl,
sizeof(struct fxp_ctrl));
bus_dmamem_free(sc->sc_dmat, &sc->sc_cb_seg, sc->sc_cb_nseg);
+ goto fail;
}
for (i = 0; i < FXP_NTXCB; i++) {