diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-08 14:03:42 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-08 14:03:42 +1000 |
commit | 8abbe1d3978493a90be83f3c16df29c9263f6e11 (patch) | |
tree | 0c569068688ecf374d02c070e30df4521191eddd /hw/occ.c | |
parent | 849419dfc658bf98aa24b4b7310100f9eda99ae1 (diff) | |
download | blackbird-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |