diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-06-10 07:10:47 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 03:46:28 -0400 |
commit | 376d41ff2669617a1ef828466ad07a1be99d24d3 (patch) | |
tree | 1bba59c86da7fae20ac0619296a2d67797abfb87 /virt/kvm/kvm_main.c | |
parent | 3b5d13218667b3ca52efa52cec1d322163bf5465 (diff) |
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>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 78ed71ad6aa1..84a090644d9d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1547,7 +1547,7 @@ out_free2: | |||
1547 | goto out; | 1547 | goto out; |
1548 | p = &sigset; | 1548 | p = &sigset; |
1549 | } | 1549 | } |
1550 | r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset); | 1550 | r = kvm_vcpu_ioctl_set_sigmask(vcpu, p); |
1551 | break; | 1551 | break; |
1552 | } | 1552 | } |
1553 | case KVM_GET_FPU: { | 1553 | case KVM_GET_FPU: { |