diff options
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/caif_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index 3d0e09584fae..791249316ef3 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c | |||
@@ -874,8 +874,7 @@ static int caif_connect(struct socket *sock, struct sockaddr *uaddr, | |||
874 | sk_stream_kill_queues(&cf_sk->sk); | 874 | sk_stream_kill_queues(&cf_sk->sk); |
875 | 875 | ||
876 | err = -EINVAL; | 876 | err = -EINVAL; |
877 | if (addr_len != sizeof(struct sockaddr_caif) || | 877 | if (addr_len != sizeof(struct sockaddr_caif)) |
878 | !uaddr) | ||
879 | goto out; | 878 | goto out; |
880 | 879 | ||
881 | memcpy(&cf_sk->conn_req.sockaddr, uaddr, | 880 | memcpy(&cf_sk->conn_req.sockaddr, uaddr, |