Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
KVM: Fix KVM_SET_SIGNAL_MASK with arg == NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and avikivity committed Aug 1, 2010
1 parent 3b5d132 commit 376d41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ static long kvm_vcpu_ioctl(struct file *filp,
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: {
Expand Down

0 comments on commit 376d41f

Please sign in to comment.