[PATCH v1 10/25] j1939: socket: allow reconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/socket.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c
index 683ceb84e80a..c637fad6c805 100644
--- a/net/can/j1939/socket.c
+++ b/net/can/j1939/socket.c
@@ -329,12 +329,6 @@ static int j1939_sk_connect(struct socket *sock, struct sockaddr *uaddr,
 		goto out_release_sock;
 	}
 
-	/* A re-connect() is not supported */
-	if (jsk->state & J1939_SOCK_CONNECTED) {
-		ret = -EBUSY;
-		goto out_release_sock;
-	}
-
 	jsk->addr.dst_name = addr->can_addr.j1939.name;
 	jsk->addr.da = addr->can_addr.j1939.addr;
 
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux