Unverified Commit edd5b39d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15497 cifs: Fix an infinite loop in cifsd caused by a failed mount attempt on port 139

parents 8557cdf9 0caf36e7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -376,7 +376,10 @@ __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst,
		 * be taken as the remainder of this one. We need to kill the
		 * socket so the server throws away the partial SMB
		 */
		spin_lock(&GlobalMid_Lock);
		if (server->tcpStatus != CifsExiting)
			server->tcpStatus = CifsNeedReconnect;
		spin_unlock(&GlobalMid_Lock);
		trace_smb3_partial_send_reconnect(server->CurrentMid,
						  server->hostname);
	}