aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/drbd/drbd_receiver.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index a6f0b2938363..855cadfe6146 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -985,13 +985,9 @@ retry:
985 goto out_release_sockets; 985 goto out_release_sockets;
986 } 986 }
987 987
988 if (sock.socket && &msock.socket) { 988 ok = drbd_socket_okay(&sock.socket);
989 ok = drbd_socket_okay(&sock.socket); 989 ok = drbd_socket_okay(&msock.socket) && ok;
990 ok = drbd_socket_okay(&msock.socket) && ok; 990 } while (!ok);
991 if (ok)
992 break;
993 }
994 } while (1);
995 991
996 if (ad.s_listen) 992 if (ad.s_listen)
997 sock_release(ad.s_listen); 993 sock_release(ad.s_listen);