cifs: Fix oops in session setup code for null user mounts
authorShirish Pargaonkar <[email protected]>
Thu, 2 Feb 2012 21:28:28 +0000 (15:28 -0600)
committerSteve French <[email protected]>
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: <[email protected]
Reported-and-Tested-by: Chris Clayton <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Shirish Pargaonkar <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/sess.c