autofs: add WARN_ON(1) for non dir/link inode case
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 10 Sep 2016 10:34:23 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:23 +0000 (20:34 +1000)
commit9ec1a6e5adaa6b0561c2b6c79c8ba8421a291db9
treeddb10b94a1efb2b9af54cd99347c08c5d759ee3c
parent49bdfc8d4abb4049b04578e892b7614c0d15b5a5
autofs: add WARN_ON(1) for non dir/link inode case

It's invalid if the given mode is neither dir nor link, so warn on else
case.

Link: http://lkml.kernel.org/r/20160812024754.12352.8536.stgit@pluto.themaw.net
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs4/inode.c
This page took 0.034103 seconds and 5 git commands to generate.