aboutsummaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2021-11-17 10:48:35 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-11-18 08:46:44 +0000
commit50d7d967bbfdcaf38bfac1c3bcc985a31fed26ab (patch)
tree5a77667cc1cda47c6ca51b627cadb7fff8c3af50 /sys/xen
parent4fdc5b8494b46007549b1932c64e11cf634599a1 (diff)
xen/privcmd: fix MMAP_RESOURCE ioctl to copy out results
The current definition for the MMAP_RESOURCE ioctl was wrong as it didn't copy back the result to the caller. Fix the definition and also remove the bogus attempt to copy the result in the implementation. Note such copy back is only needed when querying the size of a resource. Sponsored by: Citrix Systems R&D
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/privcmd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xen/privcmd.h b/sys/xen/privcmd.h
index 55a1cdc86471..605ba018ac34 100644
--- a/sys/xen/privcmd.h
+++ b/sys/xen/privcmd.h
@@ -79,7 +79,7 @@ struct ioctl_privcmd_dmop {
#define IOCTL_PRIVCMD_MMAPBATCH \
_IOWR('E', 1, struct ioctl_privcmd_mmapbatch)
#define IOCTL_PRIVCMD_MMAP_RESOURCE \
- _IOW('E', 2, struct ioctl_privcmd_mmapresource)
+ _IOWR('E', 2, struct ioctl_privcmd_mmapresource)
#define IOCTL_PRIVCMD_DM_OP \
_IOW('E', 3, struct ioctl_privcmd_dmop)
#define IOCTL_PRIVCMD_RESTRICT \