Reset TreeId to zero on SMB2 TREE_CONNECT

Currently the cifs module breaks the CIFS specs on reconnect as
described in

"TreeId (4 bytes): Uniquely identifies the tree connect for the
command. This MUST be 0 for the SMB2 TREE_CONNECT Request."

Signed-off-by: Jan-Marek Glogowski <>
Reviewed-by: Aurelien Aptel <>
Tested-by: Aurelien Aptel <>
Signed-off-by: Steve French <>
CC: Stable <>
1 file changed