diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-08-16 02:23:42 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-08-16 02:23:42 +0000 |
commit | 47a5eeb6791258a1ae8a09b8768e1d7302f35b4f (patch) | |
tree | 8c79d0ee3c65c3b33f29136852496544f7c4d317 | |
parent | 8528b2a710f839d81907fa9e849e7f4925605b01 (diff) | |
download | FreeBSD-src-47a5eeb6791258a1ae8a09b8768e1d7302f35b4f.zip FreeBSD-src-47a5eeb6791258a1ae8a09b8768e1d7302f35b4f.tar.gz |
Fix a long standing bug in the camq teardown code.
-rw-r--r-- | sys/cam/cam_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/cam_queue.c b/sys/cam/cam_queue.c index 1262b6e..3ec7ad2 100644 --- a/sys/cam/cam_queue.c +++ b/sys/cam/cam_queue.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_queue.c,v 1.2 1999/04/07 22:57:48 gibbs Exp $ + * $Id: cam_queue.c,v 1.3 1999/04/19 21:26:08 gibbs Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -242,8 +242,8 @@ cam_devq_init(struct cam_devq *devq, int devices, int openings) void cam_devq_free(struct cam_devq *devq) { - camq_free(&devq->alloc_queue); - camq_free(&devq->send_queue); + camq_fini(&devq->alloc_queue); + camq_fini(&devq->send_queue); free(devq, M_DEVBUF); } |