]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: mask off top byte in get_rfc1002_length()
authorJeff Layton <jlayton@redhat.com>
Sun, 23 Feb 2014 00:35:38 +0000 (19:35 -0500)
committerSteve French <smfrench@gmail.com>
Fri, 28 Feb 2014 20:01:14 +0000 (14:01 -0600)
commit2964b3117153126da77b227af59d318fc3455c14
treee385849f0ad8c95af05d23b7a84dd5ca0bdad32b
parent2ae693a8a85cd49220249692d89f49e9c3195e0b
cifs: mask off top byte in get_rfc1002_length()

The rfc1002 length actually includes a type byte, which we aren't
masking off. In most cases, it's not a problem since the
RFC1002_SESSION_MESSAGE type is 0, but when doing a RFC1002 session
establishment, the type is non-zero and that throws off the returned
length.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h