Description: platform/x86: intel_pmc_core: fix memleak on registration failure References: Notes: carnil> Introduced in 938835aa903a ("platform/x86: intel_pmc_core: do not create a carnil> static struct device"). Vulnerable versions: 5.9. Bugs: upstream: released (5.16-rc7) [26a8b09437804fabfb1db080d676b96c0de68e7c] 6.7-upstream-stable: N/A "Fixed before branching point" 6.6-upstream-stable: N/A "Fixed before branching point" 6.1-upstream-stable: N/A "Fixed before branching point" 5.10-upstream-stable: released (5.10.89) [7a37f2e370699e2feca3dca6c8178c71ceee7e8a] 4.19-upstream-stable: N/A "Vulnerable code not present" sid: released (5.15.15-1) 6.1-bookworm-security: N/A "Fixed before branching point" 5.10-bullseye-security: released (5.10.92-1) 4.19-buster-security: N/A "Vulnerable code not present"