lkml.org 
[lkml]   [2017]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 068/147] CIFS: remove endian related sparse warning
    3.2.95-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Steve French <smfrench@gmail.com>

    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>
    [bwh: Backported to 3.2: adjust context]
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    fs/cifs/dir.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/fs/cifs/dir.c
    +++ b/fs/cifs/dir.c
    @@ -522,7 +522,7 @@ cifs_lookup(struct inode *parent_dir_ino

    /* Don't allow path components longer than the server max. */
    if (unlikely(direntry->d_name.len >
    - pTcon->fsAttrInfo.MaxPathNameComponentLength)) {
    + le32_to_cpu(pTcon->fsAttrInfo.MaxPathNameComponentLength))) {
    rc = -ENAMETOOLONG;
    goto lookup_out;
    }
    \
     
     \ /
      Last update: 2017-11-08 20:57    [W:4.276 / U:0.424 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site