]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix hang on cifs_get_next_mid()
authorEnzo Matsumiya <ematsumiya@suse.de>
Fri, 7 Jan 2022 22:51:39 +0000 (19:51 -0300)
committerSteve French <stfrench@microsoft.com>
Sat, 8 Jan 2022 02:07:11 +0000 (20:07 -0600)
commit735e199576dcef45fbf21f68374738036ccffcdf
tree7da7b06bfe4b3231e6610a66b9debb4885f64c86
parente35bb7a3d0ef7ffc3b6e87b2eb02d3f293890b38
cifs: fix hang on cifs_get_next_mid()

Mount will hang if using SMB1 and DFS.

This is because every call to get_next_mid() will, unconditionally,
mark tcpStatus to CifsNeedReconnect before even establishing the
initial connect, because "reconnect" variable was not initialized.

Initializing "reconnect" to false fix this issue.

Fixes: 220c5bc25d87 ("cifs: take cifs_tcp_ses_lock for status checks")
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb1ops.c