diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-04-03 14:28:02 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-04-03 14:28:02 -0700 |
commit | 95ba737db3b412d9d22e3a6214ccd7a8dcb20eb9 (patch) | |
tree | ab3eab2da739d3bce85a7acb9407d1059caf9e35 | |
parent | 2f6ff99d028b032ee73c7acbc5866f3bd1878341 (diff) | |
parent | 4d67439564785bd120ae3a3e2750e6ee0ddb4474 (diff) |
Merge "drivers: qcom: lpm-stats: Fix undefined access error" into LE.UM.2.3.2.r1LE.UM.2.3.2-00800-SDX24LE.UM.2.3.2-00600-SDX24
-rw-r--r-- | drivers/soc/qcom/lpm-stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/qcom/lpm-stats.c b/drivers/soc/qcom/lpm-stats.c index a4d59f4c83c1..97c2f516076f 100644 --- a/drivers/soc/qcom/lpm-stats.c +++ b/drivers/soc/qcom/lpm-stats.c @@ -694,9 +694,10 @@ static void cleanup_stats(struct lpm_stats *stats) { struct list_head *centry = NULL; struct lpm_stats *pos = NULL; + struct lpm_stats *n = NULL; centry = &stats->child; - list_for_each_entry_reverse(pos, centry, sibling) { + list_for_each_entry_safe_reverse(pos, n, centry, sibling) { if (!list_empty(&pos->child)) { cleanup_stats(pos); continue; |