From 9b7de7350906fcaa9fcbbf3d78ab4712c57b8c36 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Fri, 17 Mar 2006 04:52:27 +0000 Subject: [PATCH] In mpt_complete_request_chain don't depend on somebody else to remove the request from the TAILQ. --- sys/dev/mpt/mpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c index 7b3e7377cd9..12fb146694c 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;