Because the cpumap member of struct xen_sysctl_cpupool_op is used only
when the operation is XEN_SYSCTL_CPUPOOL_OP_INFO or
XEN_SYSCTL_CPUPOOL_OP_FREEINFO, in case of others, xencomm_map to
cpumap fails, thus XEN_SYSCTL_cpupool_op fails.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
}
case XEN_SYSCTL_cpupool_op:
+ if (kern_op.u.cpupool_op.op != XEN_SYSCTL_CPUPOOL_OP_INFO &&
+ kern_op.u.cpupool_op.op != XEN_SYSCTL_CPUPOOL_OP_FREEINFO)
+ break;
desc = xencomm_map(
xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap),
ROUND_DIV(kern_op.u.cpupool_op.cpumap.nr_cpus, 8));