Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pmdomain-v6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm

Pull pmdomain fixes from Ulf Hansson:
"Core:

- Fix error checking in genpd_dev_pm_attach_by_id()

Providers:

- renesas: Remove obsolete nullify checks for rcar domains"

* tag 'pmdomain-v6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
pmdomain: core: Fix error checking in genpd_dev_pm_attach_by_id()
pmdomain: renesas: rcar: Remove obsolete nullify checks

+1 -11
+1 -1
drivers/pmdomain/core.c
··· 3126 3126 /* Verify that the index is within a valid range. */ 3127 3127 num_domains = of_count_phandle_with_args(dev->of_node, "power-domains", 3128 3128 "#power-domain-cells"); 3129 - if (index >= num_domains) 3129 + if (num_domains < 0 || index >= num_domains) 3130 3130 return NULL; 3131 3131 3132 3132 /* Allocate and register device on the genpd bus. */
-5
drivers/pmdomain/renesas/rcar-gen4-sysc.c
··· 338 338 struct rcar_gen4_sysc_pd *pd; 339 339 size_t n; 340 340 341 - if (!area->name) { 342 - /* Skip NULLified area */ 343 - continue; 344 - } 345 - 346 341 n = strlen(area->name) + 1; 347 342 pd = kzalloc(sizeof(*pd) + n, GFP_KERNEL); 348 343 if (!pd) {
-5
drivers/pmdomain/renesas/rcar-sysc.c
··· 396 396 struct rcar_sysc_pd *pd; 397 397 size_t n; 398 398 399 - if (!area->name) { 400 - /* Skip NULLified area */ 401 - continue; 402 - } 403 - 404 399 n = strlen(area->name) + 1; 405 400 pd = kzalloc(sizeof(*pd) + n, GFP_KERNEL); 406 401 if (!pd) {