autofs: fix autofs_sbi() does not check super block type
authorIan Kent <[email protected]>
Wed, 22 Aug 2018 04:51:45 +0000 (21:51 -0700)
committerLinus Torvalds <[email protected]>
Wed, 22 Aug 2018 17:52:43 +0000 (10:52 -0700)
commit0633da48f0793aeba27f82d30605624416723a91
treeee94fd9c9cc86c68eb38cab80c02a34982ac69aa
parent778a33959a8ad4cb1ea2f4c5119f9e1e8b9f9d9b
autofs: fix autofs_sbi() does not check super block type

autofs_sbi() does not check the superblock magic number to verify it has
been given an autofs super block.

Link: http://lkml.kernel.org/r/[email protected]
Reported-by: <[email protected]>
Signed-off-by: Ian Kent <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/autofs/autofs_i.h
fs/autofs/inode.c