Provided by: linux-doc-2.6.15_2.6.15-23.39_all bug

NAME

       d_validate - verify dentry provided from insecure source

SYNOPSIS

       int d_validate  (struct dentry * dentry, struct dentry * dparent);

ARGUMENTS

       dentry The dentry alleged to be valid child of dparent

       dparent
              The parent dentry (known to be valid)

DESCRIPTION

       An insecure source has sent us a dentry, here we verify it and dget it.
       This is used by ncpfs in its readdir implementation. Zero  is  returned
       in the dentry is invalid.