]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Always resolve hostname before reconnecting
authorPaulo Alcantara <paulo@paulo.ac>
Tue, 20 Nov 2018 17:16:36 +0000 (15:16 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 16:31:37 +0000 (17:31 +0100)
commit834adff8b5a711e6e934e75407e88fa4dc123d34
tree4267de22fa8d52d66c9afcb848af7683477ed9a0
parentfafc8e09d1e92351969ab6d2ad237f3c266fe2d8
cifs: Always resolve hostname before reconnecting

commit 28eb24ff75c5ac130eb326b3b4d0dcecfc0f427d upstream.

In case a hostname resolves to a different IP address (e.g. long
running mounts), make sure to resolve it every time prior to calling
generic_ip_connect() in reconnect.

Suggested-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c