Skip to content

Commit

Permalink
Merge branch 'vhost' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/mst/vhost
  • Loading branch information
David S. Miller committed Apr 7, 2010
2 parents a55cb18 + 179b284 commit 04b1a22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem,
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;
Expand Down

0 comments on commit 04b1a22

Please sign in to comment.