Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
611860e8
Commit
611860e8
authored
Apr 29, 2003
by
Jon Grimm
Committed by
Jon Grimm
Apr 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Free up data chunks that don't get accepted by primitive_SEND.
Fix memory leak.
parent
beca2c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
net/sctp/socket.c
net/sctp/socket.c
+8
-2
No files found.
net/sctp/socket.c
View file @
611860e8
...
...
@@ -1100,12 +1100,18 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
chunk
->
transport
=
chunk_tp
;
/* Send it to the lower layers. */
sctp_primitive_SEND
(
asoc
,
chunk
);
err
=
sctp_primitive_SEND
(
asoc
,
chunk
);
/* Did the lower layer accept the chunk? */
if
(
err
)
sctp_chunk_free
(
chunk
);
SCTP_DEBUG_PRINTK
(
"We sent primitively.
\n
"
);
}
sctp_datamsg_free
(
datamsg
);
err
=
msg_len
;
if
(
err
)
goto
out_free
;
else
err
=
msg_len
;
/* If we are already past ASSOCIATE, the lower
* layers are responsible for association cleanup.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment