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

Commit 083fb4e7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: cpuidle: lpm-levels: Fix untrusted pointer dereference."

parents 957c8b8c ea942baf
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -820,14 +820,12 @@ failed:

void free_cluster_node(struct lpm_cluster *cluster)
{
	struct list_head *list;
	int i;
	struct lpm_cluster *cl, *m;

	list_for_each(list, &cluster->child) {
		struct lpm_cluster *n;
		n = list_entry(list, typeof(*n), list);
		list_del(list);
		free_cluster_node(n);
	list_for_each_entry_safe(cl, m, &cluster->child, list) {
		list_del(&cl->list);
		free_cluster_node(cl);
	};

	if (cluster->cpu) {