cifs: sanitize username handling
authorJeff Layton <jlayton@redhat.com>
Tue, 17 Jan 2012 21:09:15 +0000 (16:09 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 18 Jan 2012 04:40:26 +0000 (22:40 -0600)
commit04febabcf55beeffb8794a0d8c539e571bd2ae29
tree8727fdf5c811bab3d164293488cd5e1a3816276c
parent9f6ed2ca257fa8650b876377833e6f14e272848b
cifs: sanitize username handling

Currently, it's not very clear whether you're allowed to have a NULL
vol->username or ses->user_name. Some places check for it and some don't.

Make it clear that a NULL pointer is OK in these fields, and ensure that
all the callers check for that.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_spnego.c
fs/cifs/cifsencrypt.c
fs/cifs/connect.c