cifs: fix error handling in mount-time DFS referral chasing code
authorJeff Layton <jlayton@redhat.com>
Thu, 23 Jul 2009 19:22:30 +0000 (15:22 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 28 Jul 2009 00:51:59 +0000 (00:51 +0000)
commit7b91e2661addd8e2419cb45f6a322aa5dab9bcee
treecf17b0ca2bffa52c7e450cd75d5277c35cc9eda4
parentfc013a58859b7cf85e53a05804a74952fe0a4117
cifs: fix error handling in mount-time DFS referral chasing code

If the referral is malformed or the hostname can't be resolved, then
the current code generates an oops. Fix it to handle these errors
gracefully.

Reported-by: Sandro Mathys <sm@sandro-mathys.ch>
Acked-by: Igor Mammedov <niallain@gmail.com>
CC: Stable <stable@kernel.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/connect.c