vhost: fix get_user_pages_fast error handling
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2010 09:25:23 +0000 (11:25 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 28 Feb 2010 17:42:36 +0000 (19:42 +0200)
get_user_pages_fast returns number of pages on success, negative value
on failure, but never 0. Fix vhost code to match this logic.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

No differences found