]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/cifs/dir.c
CIFS: remove endian related sparse warning
[karo-tx-linux.git] / fs / cifs / dir.c
index 569d3fb736be070d2693f600f867bd836aeb1dc4..e702d48bd023411f3bbed69c6cc6a571f2fc059c 100644 (file)
@@ -205,7 +205,7 @@ check_name(struct dentry *direntry, struct cifs_tcon *tcon)
        int i;
 
        if (unlikely(direntry->d_name.len >
-                    tcon->fsAttrInfo.MaxPathNameComponentLength))
+                    le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength)))
                return -ENAMETOOLONG;
 
        if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) {