]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb57de68aa5bea6c646bd0bbd759dba9364d2ca8c
tree85bd1a2e79e92d1ff52714aa19888ef7e4f80638
parent60822d01acade7ce52856be281da46fa2300caba
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