diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-01-19 18:48:45 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2015-04-09 18:39:56 +0200 |
commit | f53e57975151f54ad8caa1b0ac8a78091cd5700a (patch) | |
tree | 7322a985d8f37d229cdb6ef66ddae5bf218b9df6 /fs/super.c | |
parent | mnt: Honor MNT_LOCKED when detaching mounts (diff) | |
download | linux-f53e57975151f54ad8caa1b0ac8a78091cd5700a.tar.xz linux-f53e57975151f54ad8caa1b0ac8a78091cd5700a.zip |
mnt: Fix the error check in __detach_mounts
lookup_mountpoint can return either NULL or an error value.
Update the test in __detach_mounts to test for an error value
to avoid pathological cases causing a NULL pointer dereferences.
The callers of __detach_mounts should prevent it from ever being
called on an unlinked dentry but don't take any chances.
Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions