kvm: Fix kvm_get_page_retry_io __gup retval check
authorAndres Lagar-Cavilla <andreslc@google.com>
Thu, 25 Sep 2014 22:26:50 +0000 (15:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Sep 2014 08:21:29 +0000 (10:21 +0200)
commitbb0ca6acd466af55c95b7ce508f29e23a24cabd9
tree99f2d6b8963f869e35a1be940183f77d939c5bb8
parent00c027db0cc4b7387b258330482c6e5f5e836b18
kvm: Fix kvm_get_page_retry_io __gup retval check

Confusion around -EBUSY and zero (inside a BUG_ON no less).

Reported-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andres Lagar-Cavilla <andreslc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c