cifs: check for NULL session password
commit39371f2a8a7c27a63882c1586c3ee72f05eb6527
authorJeff Layton <jlayton@redhat.com>
Mon, 23 Aug 2010 15:38:04 +0000 (23 11:38 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:23:16 +0000 (8 10:23 -0700)
treefb73ad983a1def19387a13f35617a791b20edfc0
parenteda9d27e356873efbd5f071da1741fc74a842c2b
cifs: check for NULL session password

commit 24e6cf92fde1f140d8eb0bf7cd24c2c78149b6b2 upstream.

It's possible for a cifsSesInfo struct to have a NULL password, so we
need to check for that prior to running strncmp on it.

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/connect.c