• Jeff Layton's avatar
    cifs: clean up checkSMB · 376b43f4
    Jeff Layton authored
    The variable names in this function are so ambiguous that it's very
    difficult to know what it's doing. Rename them to make it a bit more
    clear.
    
    Also, remove a redundant length check. cifsd checks to make sure that
    the rfclen isn't larger than the maximum frame size when it does the
    receive.
    
    Finally, change checkSMB to return a real error code (-EIO) when
    it finds an error. That will help simplify some coming changes in the
    callers.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarSteve French <smfrench@gmail.com>
    376b43f4
misc.c 20.1 KB