Commit d3927e5
smb: client: fix potential race in cifs_put_tcon()
commit c32b624 upstream.
dfs_cache_refresh() delayed worker could race with cifs_put_tcon(), so
make sure to call list_replace_init() on @tcon->dfs_ses_list after
kworker is cancelled or finished.
Fixes: 4f42a8b ("smb: client: fix DFS interlink failover")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a4bb7ce commit d3927e5
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
2560 | | - | |
2561 | | - | |
2562 | | - | |
2563 | 2560 | | |
2564 | 2561 | | |
2565 | 2562 | | |
2566 | 2563 | | |
2567 | 2564 | | |
2568 | 2565 | | |
2569 | 2566 | | |
| 2567 | + | |
2570 | 2568 | | |
2571 | 2569 | | |
2572 | 2570 | | |
| |||
0 commit comments