Skip to content

Commit 5f08f0a

Browse files
smfrenchgregkh
authored andcommitted
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 <smfrench@gmail.com> CC: Ronnie Sahlberg <lsahlber@redhat.com> Acked-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e596cc1 commit 5f08f0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ check_name(struct dentry *direntry, struct cifs_tcon *tcon)
194194
int i;
195195

196196
if (unlikely(direntry->d_name.len >
197-
tcon->fsAttrInfo.MaxPathNameComponentLength))
197+
le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength)))
198198
return -ENAMETOOLONG;
199199

200200
if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) {

0 commit comments

Comments
 (0)