CIFS: Fix undefined behavior when mount fails
commitb2e5cd33b598fb496b9366c445bd77c801efabb8
authorPavel Shilovsky <piastry@etersoft.ru>
Wed, 25 May 2011 09:35:34 +0000 (25 13:35 +0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 25 May 2011 20:02:31 +0000 (25 20:02 +0000)
tree19f404a46cc637c7d6034deec5d7b1f9b0553924
parent3c1105df699188a70f5c17dc0795affea388bca7
CIFS: Fix undefined behavior when mount fails

Fix double kfree() calls on the same pointers and cleanup mount code.

Reviewed-and-Tested-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c