commit | d6db3f5c11dc7ed5712d5d5682aa34025ee5248e | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Tue Feb 23 11:25:23 2010 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Sun Feb 28 19:42:36 2010 +0200 |
tree | 30d7c7dd5987be4185943de23db686027e1a0867 | |
parent | 73a99f083009d67d8e12603420e008d5c21b0b7d [diff] |
vhost: fix get_user_pages_fast error handling 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>