Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0035a4b1 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by David Teigland
Browse files

dlm: tcp_connect_to_sock should check for -EINVAL, not EINVAL



Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Cc: Christine Caulfield <ccaulfie@redhat.com>
Cc: David Teigland <teigland@redhat.com>
Cc: cluster-devel@redhat.com
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 88ad2319
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -931,7 +931,7 @@ static void tcp_connect_to_sock(struct connection *con)
	 * errors we try again until the max number of retries is reached.
	 */
	if (result != -EHOSTUNREACH && result != -ENETUNREACH &&
	    result != -ENETDOWN && result != EINVAL
	    result != -ENETDOWN && result != -EINVAL
	    && result != -EPROTONOSUPPORT) {
		lowcomms_connect_sock(con);
		result = 0;