]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:32 +0000 (14:18 -0700)
commit810e14eeb5010988d33685bf338bd11f6e1fa37e
tree0b52604cd4539a230d31a728ba8fe13e38cd87a3
parent448fa340730d6d53e31c62f60064b96ac789e816
cifs: fix error handling in mount-time DFS referral chasing code

commit 7b91e2661addd8e2419cb45f6a322aa5dab9bcee upstream.

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>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifs_dfs_ref.c
fs/cifs/connect.c