]> err.no Git - linux-2.6/blobdiff - fs/nfs/getroot.c
minixfs: convert to new aops
[linux-2.6] / fs / nfs / getroot.c
index 234778576f096359ade33cf319633b33cf168702..522e5ad4d8ad9b3946e201926c7f799ddf0f2e36 100644 (file)
@@ -41,7 +41,6 @@
 #include "internal.h"
 
 #define NFSDBG_FACILITY                NFSDBG_CLIENT
-#define NFS_PARANOIA 1
 
 /*
  * get an NFS2/NFS3 root dentry from the root filehandle
@@ -176,6 +175,9 @@ next_component:
                path++;
        name.len = path - (const char *) name.name;
 
+       if (name.len > NFS4_MAXNAMLEN)
+               return -ENAMETOOLONG;
+
 eat_dot_dir:
        while (*path == '/')
                path++;