diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-12 06:54:39 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-12 06:54:39 +0000 |
commit | 566e1c2c050af333c90dc4306dfe6f12916139d7 (patch) | |
tree | 11b82706e211286bb5fc3f91f1d7fc599c7fbf21 /sys | |
parent | 78d112caf59d3a02440b85f23d7da13d0e7c7e02 (diff) |
dont leak a ccb in identify
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/nvme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 6fb2a8ef6af..352b5a12879 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.7 2014/09/12 06:34:14 dlg Exp $ */ +/* $OpenBSD: nvme.c,v 1.8 2014/09/12 06:54:38 dlg Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -473,6 +473,8 @@ nvme_identify(struct nvme_softc *sc, u_int mps) bus_dmamap_sync(sc->sc_dmat, NVME_DMA_MAP(mem), 0, sizeof(*identify), BUS_DMASYNC_POSTREAD); + nvme_ccb_put(sc, ccb); + if (rv != 0) goto done; |