  	fd = open("/proc/mounts", O_RDONLY);
  	if (fd < 0) {
  		printf("failed to open /proc/mounts, errno = %d\n", errno);
-@@ -152,11 +150,9 @@
+@@ -136,9 +134,7 @@
+ 	}
+ 
+ err:
+-	if (found == 0)
+-		printf("nothing mounted on /dev/shm\n");
+-	else if (found < 0)
++	if (found < 0)
+ 		printf("read returned errno %d\n", -found);
+ 
+ out:
+@@ -152,11 +148,9 @@
  		goto err;
  
  	if (strncmp(buf, "tmpfs", strlen("tmpfs"))) {

 	munmap(addr, UM_KERN_PAGE_SIZE);
 
 	close(fd);
diff -urN -x '*.o' -x '*.cmd' -x '*.s' linux-3.10.5.orig/arch/um/os-Linux/start_up.c linux-3.10.5/arch/um/os-Linux/start_up.c
--- linux-3.10.5.orig/arch/um/os-Linux/start_up.c	2013-08-05 16:01:29.191483996 +0200
+++ linux-3.10.5/arch/um/os-Linux/start_up.c	2013-08-07 14:29:24.455443543 +0200

 	default_tmpdir = "/dev/shm";
 	goto out;
 }
@@ -262,7 +256,6 @@
 
 	addr = mmap(NULL, UM_KERN_PAGE_SIZE,
 		    PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0);
