[PATCH 5.19 0213/1157] x86/pmem: Fix platform-device leak in error path