In mpt_complete_request_chain don't depend on somebody else to

remove the request from the TAILQ.
This commit is contained in:
Matt Jacob 2006-03-17 04:52:27 +00:00
parent a968ffc467
commit 9b7de73509

View file

@ -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;