]> git.baikalelectronics.ru Git - kernel.git/commit
uml: Fix which_tmpdir failure when /dev/shm is a symlink, and in other edge cases
authorTristan Schmelcher <tschmelcher@google.com>
Mon, 8 Jul 2013 20:19:49 +0000 (16:19 -0400)
committerRichard Weinberger <richard@nod.at>
Fri, 19 Jul 2013 08:45:18 +0000 (10:45 +0200)
commit615da355c00172bbc610218d90b3295a74c4889a
treee92d36be92de59abe737f49e8a23bcb7e1bcf12b
parentc1a9a946c6d2c8bcddcc635a7333a88e7920d1e7
uml: Fix which_tmpdir failure when /dev/shm is a symlink, and in other edge cases

which_tmpdir did the wrong thing if /dev/shm was a symlink (e.g., to /run/shm),
if there were multiple mounts on top of each other, if the mount(s) were
obscured by a later mount, or if /dev/shm was a prefix of another mount point.
This fixes these cases. Applies to 3.9.6.

Signed-off-by: Tristan Schmelcher <tschmelcher@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/mem.c