Commit 36114344 authored by Ulf Hansson's avatar Ulf Hansson
Browse files

pmdomain: Merge branch fixes into next



Merge the pmdomain fixes for v6.15-rc[n] into the next branch, to allow
them to get tested together with the new changes that are targeted for
v6.16.

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parents e3407cc5 0f575766
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3176,7 +3176,7 @@ struct device *genpd_dev_pm_attach_by_id(struct device *dev,
	/* Verify that the index is within a valid range. */
	num_domains = of_count_phandle_with_args(dev->of_node, "power-domains",
						 "#power-domain-cells");
	if (index >= num_domains)
	if (num_domains < 0 || index >= num_domains)
		return NULL;

	/* Allocate and register device on the genpd bus. */