lkml.org 
[lkml]   [2010]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [11/23] KVM: Fix KVM_SET_SIGNAL_MASK
    Date

    Real bug fix.

    When the user passed in a NULL mask pass this on from the ioctl
    handler.

    Found by gcc 4.6's new warnings.

    Cc: avi@redhat.com
    Cc: kvm@vger.kernel.org

    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    virt/kvm/kvm_main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6.35-rc2-gcc/virt/kvm/kvm_main.c
    ===================================================================
    --- linux-2.6.35-rc2-gcc.orig/virt/kvm/kvm_main.c
    +++ linux-2.6.35-rc2-gcc/virt/kvm/kvm_main.c
    @@ -1520,7 +1520,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: {

    \
     
     \ /
      Last update: 2010-06-10 13:17    [W:0.029 / U:65.232 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site