diff options
author | mjacob <mjacob@FreeBSD.org> | 2006-03-17 04:52:27 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2006-03-17 04:52:27 +0000 |
commit | 4a446c8f7ddd95b8636cc754fdf40a7890e2cd77 (patch) | |
tree | 96f89aeb136a0eebea35222e90242170cf01b2a0 /sys/dev/mpt | |
parent | c3dbfad35e002d6b4f99d6dfd3112ef1a5dfd0b5 (diff) | |
download | FreeBSD-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.c | 2 |
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; |