Răsfoiți Sursa

Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

David S. Miller 14 ani în urmă
părinte
comite
d836b31e16
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/vhost/vhost.c

+ 1 - 1
drivers/vhost/vhost.c

@@ -371,7 +371,7 @@ static int log_access_ok(void __user *log_base, u64 addr, unsigned long sz)
 	/* Make sure 64 bit math will not overflow. */
 	if (a > ULONG_MAX - (unsigned long)log_base ||
 	    a + (unsigned long)log_base > ULONG_MAX)
-		return -EFAULT;
+		return 0;
 
 	return access_ok(VERIFY_WRITE, log_base + a,
 			 (sz + VHOST_PAGE_SIZE * 8 - 1) / VHOST_PAGE_SIZE / 8);