diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 67861a8f00cb3ecd814affc27a73902b140250db..1e788279bb22ec77796cc450009f6d5917545e7d 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -4170,7 +4170,7 @@ static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to, to += addrlen; cnt ++; space_left -= addrlen; - bytes_copied += addrlen; + *bytes_copied += addrlen; } return cnt;