Commit 193c0042 authored by Ben Collins's avatar Ben Collins

IEEE1394(r1143): Fix FCP requests, broken by my change for list_for_each_entry().

parent 16eadb50
......@@ -295,7 +295,7 @@ static void iso_receive(struct hpsb_host *host, int channel, quadlet_t *data,
unsigned long flags;
struct host_info *hi;
struct file_info *fi;
struct pending_request *req;
struct pending_request *req, *req_next;
struct iso_block_store *ibs = NULL;
LIST_HEAD(reqs);
......@@ -345,7 +345,7 @@ static void iso_receive(struct hpsb_host *host, int channel, quadlet_t *data,
}
spin_unlock_irqrestore(&host_info_lock, flags);
list_for_each_entry(req, &reqs, list)
list_for_each_entry_safe(req, req_next, &reqs, list)
queue_complete_req(req);
}
......@@ -355,7 +355,7 @@ static void fcp_request(struct hpsb_host *host, int nodeid, int direction,
unsigned long flags;
struct host_info *hi;
struct file_info *fi;
struct pending_request *req;
struct pending_request *req, *req_next;
struct iso_block_store *ibs = NULL;
LIST_HEAD(reqs);
......@@ -405,7 +405,7 @@ static void fcp_request(struct hpsb_host *host, int nodeid, int direction,
}
spin_unlock_irqrestore(&host_info_lock, flags);
list_for_each_entry(req, &reqs, list)
list_for_each_entry_safe(req, req_next, &reqs, list)
queue_complete_req(req);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment