projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e8767d
)
SCTP: Fix thinko in sctp_copy_laddrs()
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Tue, 3 Jul 2007 16:43:12 +0000
(12:43 -0400)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 6 Jul 2007 00:40:08 +0000
(17:40 -0700)
Correctly dereference bytes_copied in sctp_copy_laddrs().
I totally must have spaced when doing this.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/socket.c
b/net/sctp/socket.c
index 67861a8f00cb3ecd814affc27a73902b140250db..1e788279bb22ec77796cc450009f6d5917545e7d 100644
(file)
--- 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;