commit | f11913b894db94717492285a6be7c33fd9014972 | [log] [tgz] |
---|---|---|
author | Mahesh Sivasubramanian <msivasub@codeaurora.org> | Tue Nov 28 10:06:17 2017 -0700 |
committer | Mahesh Sivasubramanian <msivasub@codeaurora.org> | Tue Nov 28 10:19:53 2017 -0700 |
tree | 459f776095a07ef0511c22346b40c0a562690d05 | |
parent | 1f7554fbde094e1944a19bb315949ee94eb7b52a [diff] |
drivers: cpuidle: lpm-levels: Fix untrusted pointer dereference. The list_for_each macro was not used correctly, where the intermediate variable would be LIST_POISON, resulting in a untrusted pointer dereference. Switch to using list_for_each_entry_safe to for safe removal of a list entry. Change-Id: I0e0fd5dd9f251b5093d6e9d6335387512ec59249 Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>