projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9595a7
)
[SCTP]: Correctly set the length of sctp_assoc_change notification
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Thu, 14 Feb 2008 15:18:20 +0000
(10:18 -0500)
committer
Vlad Yasevich
<vladislav.yasevich@hp.com>
Wed, 27 Feb 2008 21:40:55 +0000
(16:40 -0500)
sctp_assoc_change notification may contain the data from a received
ABORT chunk. Set the length correctly to account for that.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/ulpevent.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/ulpevent.c
b/net/sctp/ulpevent.c
index e27b11f18b7f2a32935e9de3a24dd8a4030e7b91..b43f1f110f8738069c59f425bd9e40a8e81ecbee 100644
(file)
--- a/
net/sctp/ulpevent.c
+++ b/
net/sctp/ulpevent.c
@@
-206,7
+206,7
@@
struct sctp_ulpevent *sctp_ulpevent_make_assoc_change(
* This field is the total length of the notification data, including
* the notification header.
*/
- sac->sac_length = s
izeof(struct sctp_assoc_change)
;
+ sac->sac_length = s
kb->len
;
/* Socket Extensions for SCTP
* 5.3.1.1 SCTP_ASSOC_CHANGE