commit | 04b1a22350e1e6464c3109886385178d119dbbb4 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Wed Apr 07 16:52:29 2010 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 07 16:52:29 2010 -0700 |
tree | bea1d2d0f8692c82ccf9b9c727436fe9ddaa1531 | |
parent | a55cb185b4a8f84cd05b66bb00b267ea455ecdc8 [diff] | |
parent | 179b284e2fc0c638035843968f7d7ab8ab701525 [diff] |
Merge branch 'vhost' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 7bd7a1e..b8e1127 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c
@@ -235,6 +235,10 @@ int log_all) { int i; + + if (!mem) + return 0; + for (i = 0; i < mem->nregions; ++i) { struct vhost_memory_region *m = mem->regions + i; unsigned long a = m->userspace_addr;