[PATCH 5.10 118/545] x86/pmem: Fix platform-device leak in error path