Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3663c306609a9322a484fba28b3da66142c50ee9 Commit: 3663c306609a9322a484fba28b3da66142c50ee9 Parent: 7e8767dddf3ad863a7013c334392e09177b48e2c Author: Vlad Yasevich <[EMAIL PROTECTED]> AuthorDate: Tue Jul 3 12:43:12 2007 -0400 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Thu Jul 5 17:40:08 2007 -0700
SCTP: Fix thinko in sctp_copy_laddrs() Correctly dereference bytes_copied in sctp_copy_laddrs(). I totally must have spaced when doing this. Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- net/sctp/socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 67861a8..1e78827 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html