[openEuler-5.10-LTS 109/501] x86/pmem: Fix platform-device leak in error path