]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: silence printk when establishing first session on socket
authorJeff Layton <jlayton@redhat.com>
Mon, 6 Jun 2011 19:40:23 +0000 (15:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 7 Jun 2011 00:57:05 +0000 (00:57 +0000)
commit90405306ab48ee7918268b464a86f540057725f7
tree3860494ee8307b603a654e8f43685943974f7171
parent7664c8715f9a6a9537909a7fc53057ad3be89ca4
cifs: silence printk when establishing first session on socket

When signing is enabled, the first session that's established on a
socket will cause a printk like this to pop:

    CIFS VFS: Unexpected SMB signature

This is because the key exchange hasn't happened yet, so the signature
field is bogus. Don't try to check the signature on the socket until the
first session has been established. Also, eliminate the specific check
for SMB_COM_NEGOTIATE since this check covers that case too.

Cc: stable@kernel.org
Cc: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c