summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-02-23 10:25:23 +0100
committerMichael S. Tsirkin <mst@redhat.com>2010-02-28 18:42:36 +0100
commitd6db3f5c11dc7ed5712d5d5682aa34025ee5248e (patch)
tree30d7c7dd5987be4185943de23db686027e1a0867 /drivers/vhost/net.c
parentvhost: initialize log eventfd context pointer (diff)
downloadlinux-d6db3f5c11dc7ed5712d5d5682aa34025ee5248e.tar.xz
linux-d6db3f5c11dc7ed5712d5d5682aa34025ee5248e.zip
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>
Diffstat (limited to 'drivers/vhost/net.c')
0 files changed, 0 insertions, 0 deletions