]> 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)
commit0cb42726a9503cb62e161c20920451d7704e4f31
treee92d36be92de59abe737f49e8a23bcb7e1bcf12b
parent6632d530d2f3913af818182e932d18ab5160c7d0
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