summaryrefslogtreecommitdiffstats
path: root/hw/occ.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-09-08 14:03:42 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-08 14:03:42 +1000
commit8abbe1d3978493a90be83f3c16df29c9263f6e11 (patch)
tree0c569068688ecf374d02c070e30df4521191eddd /hw/occ.c
parent849419dfc658bf98aa24b4b7310100f9eda99ae1 (diff)
downloadblackbird-skiboot-8abbe1d3978493a90be83f3c16df29c9263f6e11.tar.gz
blackbird-skiboot-8abbe1d3978493a90be83f3c16df29c9263f6e11.zip
Fix unsafe list for each: need to use _safe for deletion
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/occ.c')
-rw-r--r--hw/occ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 8732133d..4b74b995 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -488,12 +488,12 @@ static void __occ_do_load(u8 scope, u32 dbob_id __unused, u32 seq_id)
void occ_poke_load_queue(void)
{
- struct occ_load_req *occ_req;
+ struct occ_load_req *occ_req, *next;
if (list_empty(&occ_load_req_list))
return;
- list_for_each(&occ_load_req_list, occ_req, link) {
+ list_for_each_safe(&occ_load_req_list, occ_req, next, link) {
__occ_do_load(occ_req->scope, occ_req->dbob_id,
occ_req->seq_id);
list_del(&occ_req->link);
OpenPOWER on IntegriCloud