power: supply: core: fix supplied_from allocations (CVE-2026-74271) | HOL Guard CVE