Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9078b07 authored by Maria Yu's avatar Maria Yu Committed by Gerrit - the friendly Code Review server
Browse files

drivers: cpuidle: lpm-levels: Correct missing list initialize



INIT_LIST_HEAD must be done to the list before do
list_del to it.

Change-Id: I25a160b326b03196058a06d452e972b409643910
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 9c978aa8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only

/*
 * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2019,2021, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "%s: " fmt, KBUILD_MODNAME
@@ -638,6 +638,7 @@ struct lpm_cluster *parse_cluster(struct device_node *node,
	if (ret)
		return NULL;

	INIT_LIST_HEAD(&c->list);
	INIT_LIST_HEAD(&c->child);
	INIT_LIST_HEAD(&c->cpu);
	c->parent = parent;