mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
Merge branch 'vhost' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
This commit is contained in:
commit
04b1a22350
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user