On Thu, Sep 25, 2014 at 03:26:50PM -0700, Andres Lagar-Cavilla wrote:
> Confusion around -EBUSY and zero (inside a BUG_ON no less).
> 
> Reported-by: AndreA Arcangeli <[email protected]>
> Signed-off-by: Andres Lagar-Cavilla <[email protected]>
> ---
>  virt/kvm/kvm_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Andrea Arcangeli <[email protected]>

Valid for this and the previous patch in Message-Id:
<[email protected]> as well.

Thanks,
Andrea

> 
> 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;
> -- 
> 2.1.0.rc2.206.gedb03e5
> 
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to