Commit 376d41ff2669617a1ef828466ad07a1be99d24d3

Authored by Andi Kleen
Committed by Avi Kivity
1 parent 3b5d132186

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1547,7 +1547,7 @@
1547 1547 goto out;
1548 1548 p = &sigset;
1549 1549 }
1550   - r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset);
  1550 + r = kvm_vcpu_ioctl_set_sigmask(vcpu, p);
1551 1551 break;
1552 1552 }
1553 1553 case KVM_GET_FPU: {