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