diff options
Diffstat (limited to 'arch/um/os-Linux/mem.c')
-rw-r--r-- | arch/um/os-Linux/mem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index b170b4704dc4..4203681e508d 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -132,6 +132,9 @@ err: | |||
132 | else if(found < 0) | 132 | else if(found < 0) |
133 | printf("read returned errno %d\n", -found); | 133 | printf("read returned errno %d\n", -found); |
134 | 134 | ||
135 | out: | ||
136 | close(fd); | ||
137 | |||
135 | return; | 138 | return; |
136 | 139 | ||
137 | found: | 140 | found: |
@@ -141,11 +144,12 @@ found: | |||
141 | 144 | ||
142 | if(strncmp(buf, "tmpfs", strlen("tmpfs"))){ | 145 | if(strncmp(buf, "tmpfs", strlen("tmpfs"))){ |
143 | printf("not tmpfs\n"); | 146 | printf("not tmpfs\n"); |
144 | return; | 147 | goto out; |
145 | } | 148 | } |
146 | 149 | ||
147 | printf("OK\n"); | 150 | printf("OK\n"); |
148 | default_tmpdir = "/dev/shm"; | 151 | default_tmpdir = "/dev/shm"; |
152 | goto out; | ||
149 | } | 153 | } |
150 | 154 | ||
151 | /* | 155 | /* |