Skip to content

fix memory leak for sctp_do_bind

Mao Wenan kernel-janitors linux-sctp lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v12 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sctp: change return type of sctp_get_port_localnet/sctp/socket.c+4 -41 reply
2/3sctp: remove redundant assignment when call sctp_get_port_localnet/sctp/socket.c+1 -21 reply
3/3sctp: destroy bucket if failed to bind addrnet/sctp/socket.c+6 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchNeil HormanMarcelo Ricardo Leitner
1/3A-b
2/3A-b A-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net 0/3] fix memory leak for sctp_do_bind

First two patches are to do cleanup, remove redundant assignment, and change return type of sctp_get_port_local.
Third patch is to fix memory leak for sctp_do_bind if failed to bind address.

---
v2: add one patch to change return type of sctp_get_port_local.
---
Mao Wenan (3):
sctp: change return type of sctp_get_port_local
sctp: remove redundant assignment when call sctp_get_port_local
sctp: destroy bucket if failed to bind addr

 net/sctp/socket.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
Signature · 1 line
2.20.1