Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369271
b: refs/heads/master
c: 50181c0
h: refs/heads/master
i:
  369269: b0b7946
  369267: 28dc67f
  369263: b39a1e4
v: v3
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Apr 17, 2013
1 parent 50e8242 commit ac3f9e0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fa5df6d210a09241876b74d156c57d833dd057b
refs/heads/master: 50181c07cbde370986c4925b830ca291a2fc31ab
2 changes: 0 additions & 2 deletions trunk/include/net/sctp/structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,6 @@ struct sctp_bind_addr {
* peer(s) in INIT and INIT ACK chunks.
*/
struct list_head address_list;

int malloced; /* Are we kfree()able? */
};

void sctp_bind_addr_init(struct sctp_bind_addr *, __u16 port);
Expand Down
7 changes: 0 additions & 7 deletions trunk/net/sctp/bind_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ int sctp_bind_addr_dup(struct sctp_bind_addr *dest,
*/
void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port)
{
bp->malloced = 0;

INIT_LIST_HEAD(&bp->address_list);
bp->port = port;
}
Expand All @@ -155,11 +153,6 @@ void sctp_bind_addr_free(struct sctp_bind_addr *bp)
{
/* Empty the bind address list. */
sctp_bind_addr_clean(bp);

if (bp->malloced) {
kfree(bp);
SCTP_DBG_OBJCNT_DEC(bind_addr);
}
}

/* Add an address to the bind address list in the SCTP_bind_addr structure. */
Expand Down

0 comments on commit ac3f9e0

Please sign in to comment.