cifs: Fix oops in session setup code for null user mounts
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Thu, 2 Feb 2012 21:28:28 +0000 (15:28 -0600)
committerSteve French <smfrench@gmail.com>
Thu, 2 Feb 2012 22:59:09 +0000 (16:59 -0600)
commitde47a4176c532ef5961b8a46a2d541a3517412d3
tree6ceecd645cbc662c47d2b00478bcb69409353734
parent2a73ca8208197d03f78d680b3c7953b897e91eb6
cifs: Fix oops in session setup code for null user mounts

For null user mounts, do not invoke string length function
during session setup.

Cc: <stable@kernel.org
Reported-and-Tested-by: Chris Clayton <chris2553@googlemail.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/sess.c