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)
commitf1a5bb049e2147e20ba7113ee1a068ea7fceea04
tree6ceecd645cbc662c47d2b00478bcb69409353734
parentfd5654dea9088393df6dbe70cd9ad5b8162d752b
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