diff options
Diffstat (limited to 'net/sctp/bind_addr.c')
-rw-r--r-- | net/sctp/bind_addr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index 442d891f68ea..eafdd11152d0 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c | |||
@@ -181,13 +181,10 @@ int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) | |||
181 | { | 181 | { |
182 | struct list_head *pos, *temp; | 182 | struct list_head *pos, *temp; |
183 | struct sctp_sockaddr_entry *addr; | 183 | struct sctp_sockaddr_entry *addr; |
184 | union sctp_addr tmp; | ||
185 | |||
186 | flip_to_n(&tmp, del_addr); | ||
187 | 184 | ||
188 | list_for_each_safe(pos, temp, &bp->address_list) { | 185 | list_for_each_safe(pos, temp, &bp->address_list) { |
189 | addr = list_entry(pos, struct sctp_sockaddr_entry, list); | 186 | addr = list_entry(pos, struct sctp_sockaddr_entry, list); |
190 | if (sctp_cmp_addr_exact(&addr->a, &tmp)) { | 187 | if (sctp_cmp_addr_exact(&addr->a, del_addr)) { |
191 | /* Found the exact match. */ | 188 | /* Found the exact match. */ |
192 | list_del(pos); | 189 | list_del(pos); |
193 | kfree(addr); | 190 | kfree(addr); |