]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/exportfs/expfs.c
vfs: Add open by file handle support
[karo-tx-linux.git] / fs / exportfs / expfs.c
index cfe55731b6dc4216168229a55e448ff428c8609f..b05acb7961355dfb680e49f3145a11065f6ac851 100644 (file)
@@ -374,6 +374,8 @@ struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid,
        /*
         * Try to get any dentry for the given file handle from the filesystem.
         */
+       if (!nop || !nop->fh_to_dentry)
+               return ERR_PTR(-ESTALE);
        result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type);
        if (!result)
                result = ERR_PTR(-ESTALE);