OSDN Git Service

CIFS: Only send SMB2_NEGOTIATE command on new TCP connections
authorPavel Shilovsky <piastryyy@gmail.com>
Tue, 5 Mar 2019 23:51:55 +0000 (15:51 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:14:27 +0000 (18:14 -0600)
commit2084ed57167c3e39f99ac2bb19f19e85321d2169
tree9b59e8ad0a9af9f4fb566379ec4e2623d955ef67
parent6dfbd84684700cb58b34e8602c01c12f3d2595c8
CIFS: Only send SMB2_NEGOTIATE command on new TCP connections

Do not allow commands other than SMB2_NEGOTIATE to be sent over
recently established TCP connections. Return -EAGAIN to let upper
layers handle it properly.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2transport.c