]> www.infradead.org Git - users/willy/linux.git/commit
autofs: fix possible inode leak in autofs_fill_super()
authorIan Kent <raven@themaw.net>
Wed, 5 Dec 2018 00:14:10 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:09:04 +0000 (09:09 +1100)
commit304c824f6d60c0f85bc13140c37b3552ea6d2957
tree4de1d64aa83580168da628dbaaf75e24ee6aaa60
parente0cca755aee110896522c5e51456f339c3c47803
autofs: fix possible inode leak in autofs_fill_super()

There is no check at all for a failure to allocate the root inode in
autofs_fill_super(), handle it.

Link: http://lkml.kernel.org/r/154296971705.9889.9822861969081020188.stgit@pluto-themaw-net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/autofs/inode.c