[PATCH 5.4 05/52] xen/privcmd: fix error handling in mmap-resource processing