]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix missed refcounting of ipc tcon
authorPaulo Alcantara <pc@cjr.nz>
Thu, 2 Dec 2021 18:29:35 +0000 (15:29 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 3 Dec 2021 18:29:10 +0000 (12:29 -0600)
commitbc2a4aa98b76771573298767e7650cb4dd97a8ff
tree956c1e9cdf7f391cca13ef1400f561b2255c71df
parentb1a885c0f40e89a4fd0f041736592b4ab46bfe8a
cifs: fix missed refcounting of ipc tcon

Fix missed refcounting of IPC tcon used for getting domain-based DFS
root referrals.  We want to keep it alive as long as mount is active
and can be refreshed.  For standalone DFS root referrals it wouldn't
be a problem as the client ends up having an IPC tcon for both mount
and cache.

Fixes: 28b5b8a1ee70 ("cifs: support nested dfs links over reconnect")
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c