vhost-net: fix vq_memory_access_ok error checking
authorJeff Dike <jdike@addtoit.com>
Wed, 7 Apr 2010 13:59:10 +0000 (09:59 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 7 Apr 2010 14:04:45 +0000 (17:04 +0300)
commit179b284e2fc0c638035843968f7d7ab8ab701525
tree6876a4fa365d13be8fb137856bf183e4085f77d7
parent535297a6ae4c3b7a0562e71fac15c213eeec68e7
vhost-net: fix vq_memory_access_ok error checking

vq_memory_access_ok needs to check whether mem == NULL

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c