aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/interrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r--drivers/misc/mei/interrupt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 62f8b65fd11a..7193149678ec 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -1127,7 +1127,6 @@ void mei_timer(struct work_struct *work)
1127 unsigned long timeout; 1127 unsigned long timeout;
1128 struct mei_cl *cl_pos = NULL; 1128 struct mei_cl *cl_pos = NULL;
1129 struct mei_cl *cl_next = NULL; 1129 struct mei_cl *cl_next = NULL;
1130 struct list_head *amthi_complete_list = NULL;
1131 struct mei_cl_cb *cb_pos = NULL; 1130 struct mei_cl_cb *cb_pos = NULL;
1132 struct mei_cl_cb *cb_next = NULL; 1131 struct mei_cl_cb *cb_next = NULL;
1133 1132
@@ -1195,9 +1194,8 @@ void mei_timer(struct work_struct *work)
1195 1194
1196 dev_dbg(&dev->pdev->dev, "freeing AMTHI for other requests\n"); 1195 dev_dbg(&dev->pdev->dev, "freeing AMTHI for other requests\n");
1197 1196
1198 amthi_complete_list = &dev->amthi_read_complete_list.list; 1197 list_for_each_entry_safe(cb_pos, cb_next,
1199 1198 &dev->amthif_rd_complete_list.list, list) {
1200 list_for_each_entry_safe(cb_pos, cb_next, amthi_complete_list, list) {
1201 1199
1202 cl_pos = cb_pos->file_object->private_data; 1200 cl_pos = cb_pos->file_object->private_data;
1203 1201