diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-03-14 01:43:44 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-03-14 01:43:44 +0000 |
commit | bb69d42c4230202b8d3759bae3da0ea5556afc37 (patch) | |
tree | e2c8bfa129a3ccbf51326b245db4db1cdcc0b5e4 /sys/dev/vscsi.c | |
parent | dc238221bcf0eefb4fed1fea0a0d12d78fcb3487 (diff) |
when closing, remove commands from the right queues as we iterate over
them, rather than the next queue.
ok deraadt@
Diffstat (limited to 'sys/dev/vscsi.c')
-rw-r--r-- | sys/dev/vscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c index a6874058a60..fc93822860b 100644 --- a/sys/dev/vscsi.c +++ b/sys/dev/vscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vscsi.c,v 1.5 2010/01/09 23:15:06 krw Exp $ */ +/* $OpenBSD: vscsi.c,v 1.6 2010/03/14 01:43:43 dlg Exp $ */ /* * Copyright (c) 2008 David Gwynne <dlg@openbsd.org> @@ -522,7 +522,7 @@ vscsiclose(dev_t dev, int flags, int mode, struct proc *p) sc->sc_opened = 0; while ((ccb = TAILQ_FIRST(&sc->sc_ccb_t2i)) != NULL) { - TAILQ_REMOVE(&sc->sc_ccb_i2t, ccb, ccb_entry); + TAILQ_REMOVE(&sc->sc_ccb_t2i, ccb, ccb_entry); polled = ISSET(ccb->ccb_xs->flags, SCSI_POLL); vscsi_xs_stuffup(ccb->ccb_xs); |