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