]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <sfrench@us.ibm.com>
Tue, 28 Jul 2009 00:51:59 +0000 (00:51 +0000)
commitfea1cc91f1c2fd51e13e5906d44fdb02c2789759
treecf17b0ca2bffa52c7e450cd75d5277c35cc9eda4
parentebad0235547e2a4a0413ce3dcbdc2b245304d112
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