diff options
author | Ian Kent <raven@themaw.net> | 2023-11-19 23:53:19 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-11-20 14:56:36 +0100 |
commit | 66917f85db6002ed09cd24186258892fcfca64b6 (patch) | |
tree | 29d6891850fa0f3582a58604a0c90ccd6a64e632 /fs/mnt_idmapping.c | |
parent | iov_iter: fix copy_page_to_iter_nofault() (diff) | |
download | linux-66917f85db6002ed09cd24186258892fcfca64b6.tar.xz linux-66917f85db6002ed09cd24186258892fcfca64b6.zip |
autofs: add: new_inode check in autofs_fill_super()
Add missing NULL check of root_inode in autofs_fill_super().
While we are at it simplify the logic by taking advantage of the VFS
cleanup procedures and get rid of the goto error handling, as suggested
by Al Viro.
Signed-off-by: Ian Kent <raven@themaw.net>
Link: https://lore.kernel.org/r/20231119225319.331156-1-raven@themaw.net
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Bill O'Donnell <billodo@redhat.com>
Reported-by: <syzbot+662f87a8ef490f45fa64@syzkaller.appspotmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/mnt_idmapping.c')
0 files changed, 0 insertions, 0 deletions