summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-03-17 04:52:27 +0000
committermjacob <mjacob@FreeBSD.org>2006-03-17 04:52:27 +0000
commit4a446c8f7ddd95b8636cc754fdf40a7890e2cd77 (patch)
tree96f89aeb136a0eebea35222e90242170cf01b2a0 /sys/dev/mpt
parentc3dbfad35e002d6b4f99d6dfd3112ef1a5dfd0b5 (diff)
downloadFreeBSD-src-4a446c8f7ddd95b8636cc754fdf40a7890e2cd77.zip
FreeBSD-src-4a446c8f7ddd95b8636cc754fdf40a7890e2cd77.tar.gz
In mpt_complete_request_chain don't depend on somebody else to
remove the request from the TAILQ.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c
index 7b3e737..12fb146 100644
--- a/sys/dev/mpt/mpt.c
+++ b/sys/dev/mpt/mpt.c
@@ -673,7 +673,7 @@ mpt_complete_request_chain(struct mpt_softc *mpt, struct req_queue *chain,
while((req = TAILQ_FIRST(chain)) != NULL) {
MSG_REQUEST_HEADER *msg_hdr;
u_int cb_index;
-
+ TAILQ_REMOVE(chain, req, links);
msg_hdr = (MSG_REQUEST_HEADER *)req->req_vbuf;
ioc_status_frame.Function = msg_hdr->Function;
ioc_status_frame.MsgContext = msg_hdr->MsgContext;
OpenPOWER on IntegriCloud