cifs: silence printk when establishing first session on socket
commite18e2fa510632dbbfcabc8f60c817f4a8576b11f
authorJeff Layton <jlayton@redhat.com>
Mon, 6 Jun 2011 19:40:23 +0000 (6 15:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:35 +0000 (23 15:05 -0700)
tree505b3631e6d7ca96a7c7a27d3b52e8d44efcdfdb
parentda85f8e3be97d43ec727637c40e8b5d7a2731e34
cifs: silence printk when establishing first session on socket

commit 9c4843ea576107a3c1fb94f2f758f198e9fe9e54 upstream.

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: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifsencrypt.c