Il 26/09/2014 00:26, Andres Lagar-Cavilla ha scritto:
> Confusion around -EBUSY and zero (inside a BUG_ON no less).
> 
> Reported-by: AndreA Arcangeli <aarca...@redhat.com>
> Signed-off-by: Andres Lagar-Cavilla <andre...@google.com>
> ---
>  virt/kvm/kvm_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 3f16f56..a1cf53e 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -1146,7 +1146,7 @@ int kvm_get_user_page_io(struct task_struct *tsk, 
> struct mm_struct *mm,
>       npages = __get_user_pages(tsk, mm, addr, 1, flags, pagep, NULL,
>                                 &locked);
>       if (!locked) {
> -             VM_BUG_ON(npages != -EBUSY);
> +             VM_BUG_ON(npages);
>  
>               if (!pagep)
>                       return 0;
> 

Thanks, applied.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to