[PATCH 6.12 587/626] pmdomain: core: Fix error checking in genpd_dev_pm_attach_by_id()