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.19.2 by commit 7b9dda6bc7d49f054c65a6602ee5b2c07d69c1b7, it was introduced in version v4.3 by commit 7a67832c7e44c20935c5d6f2264035a0f7bf0d8f. For more details please see the references link.