diff options
Diffstat (limited to 'drivers/misc/mei')
-rw-r--r-- | drivers/misc/mei/client.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 1d3720697618..9ac72f1ea6b9 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c | |||
@@ -908,7 +908,6 @@ void mei_cl_all_disconnect(struct mei_device *dev) | |||
908 | list_for_each_entry_safe(cl, next, &dev->file_list, link) { | 908 | list_for_each_entry_safe(cl, next, &dev->file_list, link) { |
909 | cl->state = MEI_FILE_DISCONNECTED; | 909 | cl->state = MEI_FILE_DISCONNECTED; |
910 | cl->mei_flow_ctrl_creds = 0; | 910 | cl->mei_flow_ctrl_creds = 0; |
911 | cl->read_cb = NULL; | ||
912 | cl->timer_count = 0; | 911 | cl->timer_count = 0; |
913 | } | 912 | } |
914 | } | 913 | } |
@@ -942,8 +941,16 @@ void mei_cl_all_wakeup(struct mei_device *dev) | |||
942 | void mei_cl_all_write_clear(struct mei_device *dev) | 941 | void mei_cl_all_write_clear(struct mei_device *dev) |
943 | { | 942 | { |
944 | struct mei_cl_cb *cb, *next; | 943 | struct mei_cl_cb *cb, *next; |
944 | struct list_head *list; | ||
945 | 945 | ||
946 | list_for_each_entry_safe(cb, next, &dev->write_list.list, list) { | 946 | list = &dev->write_list.list; |
947 | list_for_each_entry_safe(cb, next, list, list) { | ||
948 | list_del(&cb->list); | ||
949 | mei_io_cb_free(cb); | ||
950 | } | ||
951 | |||
952 | list = &dev->write_waiting_list.list; | ||
953 | list_for_each_entry_safe(cb, next, list, list) { | ||
947 | list_del(&cb->list); | 954 | list_del(&cb->list); |
948 | mei_io_cb_free(cb); | 955 | mei_io_cb_free(cb); |
949 | } | 956 | } |