Allow user names longer than 32 bytes
authorSteve French <sfrench@us.ibm.com>
Fri, 25 Feb 2011 07:11:56 +0000 (01:11 -0600)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Apr 2011 00:42:06 +0000 (00:42 +0000)
commit8727c8a85f3951ef0eef36a665f5dceebb4c495d
treef35b215604127ebb05a977a1b8c093b7b441b6af
parentbdf1b03e093bdbc571f404e751c7b0e2dca412ea
Allow user names longer than 32 bytes

We artificially limited the user name to 32 bytes, but modern servers handle
larger.  Set the maximum length to a reasonable 256, and make the user name
string dynamically allocated rather than a fixed size in session structure.
Also clean up old checkpatch warning.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_spnego.c
fs/cifs/cifsencrypt.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/misc.c
fs/cifs/sess.c