diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-06-10 15:10:47 +0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 11:46:28 +0400 |
commit | 376d41ff2669617a1ef828466ad07a1be99d24d3 (patch) | |
tree | 1bba59c86da7fae20ac0619296a2d67797abfb87 /virt | |
parent | 3b5d13218667b3ca52efa52cec1d322163bf5465 (diff) | |
download | linux-376d41ff2669617a1ef828466ad07a1be99d24d3.tar.xz |
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')
-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: goto out; p = &sigset; } - r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset); + r = kvm_vcpu_ioctl_set_sigmask(vcpu, p); break; } case KVM_GET_FPU: { |