[PATCH 5.18 0198/1095] x86/pmem: Fix platform-device leak in error path