]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: fix issue mounting of DFS ROOT when redirecting from one domain controller...
authorJeff Layton <jlayton@redhat.com>
Wed, 21 Mar 2012 10:30:40 +0000 (06:30 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 12 Apr 2012 22:14:53 +0000 (15:14 -0700)
commitc8e8915111500f7476ea4ef82996612d6d87e7ff
treed01674a6b958694bf2a9104611bb961833fb57f9
parent48a530a5e67efab562ada6c4c9ad45d1f22a386d
cifs: fix issue mounting of DFS ROOT when redirecting from one domain controller to the next

commit 1daaae8fa4afe3df78ca34e724ed7e8187e4eb32 upstream.

This patch fixes an issue when cifs_mount receives a
STATUS_BAD_NETWORK_NAME error during cifs_get_tcon but is able to
continue after an DFS ROOT referral. In this case, the return code
variable is not reset prior to trying to mount from the system referred
to. Thus, is_path_accessible is not executed and the final DFS referral
is not performed causing a mount error.

Use case: In DNS, example.com  resolves to the secondary AD server
ad2.example.com Our primary domain controller is ad1.example.com and has
a DFS redirection set up from \\ad1\share\Users to \\files\share\Users.
Mounting \\example.com\share\Users fails.

Regression introduced by commit 724d9f1.

Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru
Signed-off-by: Thomas Hadig <thomas@intapp.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@linuxfoundation.org>
fs/cifs/connect.c