OSDN Git Service

lpm-stats: cleanup lpm stats processing sanity wrapping
authorJohn Zhao <yuankuiz@codeaurora.org>
Tue, 30 Jan 2018 14:41:57 +0000 (22:41 +0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 6 Feb 2018 14:25:17 +0000 (06:25 -0800)
commit819b1faf1244b60a9b50a5f48078f449485d79e6
treee9f79d73a40ab4499a7fe4dd45cfb765947cca24
parenta7e3f3f2de950836d52b6eeb4c4f1934dd7f89b4
lpm-stats: cleanup lpm stats processing sanity wrapping

during list_for_each_entry_reverse iteration, cleanup_stats
recursively on current operated stats node could result it
will be freed at the end of that cleanup_stats progress.
De-referencing it again should not happen.

CRs-Fixed: 2182622
Change-Id: Icf837b0aa796fed5fe1721f9fe66fd0dd36ccfd7
Signed-off-by: John Zhao <yuankuiz@codeaurora.org>
drivers/power/qcom/lpm-stats.c