dlm: tcp_connect_to_sock should check for -EINVAL, not EINVAL
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 11 May 2008 20:01:29 +0000 (22:01 +0200)
committerDavid Teigland <teigland@redhat.com>
Mon, 19 May 2008 20:37:27 +0000 (15:37 -0500)
Signed-off-by: Marcin 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: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index c7d232a9ae1254a8ad03ca4d770bbc0756270d8f..637018c891eff7110620ba3aff2ff9f5e573ec8d 100644 (file)
@@ -931,7 +931,7 @@ out_err:
         * 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;