KVM: Fix KVM_SET_SIGNAL_MASK with arg == NULL
When the user passed in a NULL mask pass this on from the ioctl handler. Found by gcc 4.6's new warnings. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -1547,7 +1547,7 @@ out_free2:
|
|||||||
goto out;
|
goto out;
|
||||||
p = &sigset;
|
p = &sigset;
|
||||||
}
|
}
|
||||||
r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset);
|
r = kvm_vcpu_ioctl_set_sigmask(vcpu, p);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KVM_GET_FPU: {
|
case KVM_GET_FPU: {
|
||||||
|
Reference in New Issue
Block a user