[PATCH 4.19 056/287] x86/pmem: Fix platform-device leak in error path