From: Steve French Date: Sun, 27 Aug 2017 21:56:08 +0000 (-0500) Subject: CIFS: remove endian related sparse warning X-Git-Tag: v4.9.48~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2ae90bb85f83918c667942d9fff587c73cc1a8c;p=platform%2Fkernel%2Flinux-amlogic.git CIFS: remove endian related sparse warning commit 6e3c1529c39e92ed64ca41d53abadabbaa1d5393 upstream. Recent patch had an endian warning ie cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup() Signed-off-by: Steve French CC: Ronnie Sahlberg Acked-by: Pavel Shilovsky Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 5817125..dd3e236 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -194,7 +194,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)) {