x86/pmem: Fix platform-device leak in error path
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.15.61 by commit 377a4c5cb7abfd30bff2e516136d4a5a9d24eba4, it was introduced in version v4.3 by commit 7a67832c7e44c20935c5d6f2264035a0f7bf0d8f. For more details please see the references link.