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)
commit7473534130c3156d199512c99ff1b796233e8547
treee92d36be92de59abe737f49e8a23bcb7e1bcf12b
parent0974a9cadc7886f7baaa458bb0c89f5c5f9d458e
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