autofs4: detect invalid direct mount requests
authorIan Kent <raven@themaw.net>
Thu, 24 Jul 2008 04:30:22 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:32 +0000 (10:47 -0700)
commiteb3b176796b0e53fd26fce86847231542eb0d198
tree85bd1a2e79e92d1ff52714aa19888ef7e4f80638
parent296f7bf78bc5c7a4d772aea580ce800d14040d1a
autofs4: detect invalid direct mount requests

autofs v5 direct and offset mounts within an autofs filesystem are
triggered by existing autofs triger mounts so the mount point dentry must
be positive.  If the mount point dentry is negative then the trigger
doesn't exist so we can return fail immediately.

Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/waitq.c