diff options
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 68f0556efcc6..de6f505d6ff8 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
@@ -332,6 +332,7 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc( | |||
332 | struct sctp_transport *t = NULL; | 332 | struct sctp_transport *t = NULL; |
333 | struct sctp_hashbucket *head; | 333 | struct sctp_hashbucket *head; |
334 | struct sctp_ep_common *epb; | 334 | struct sctp_ep_common *epb; |
335 | struct hlist_node *node; | ||
335 | int hash; | 336 | int hash; |
336 | int rport; | 337 | int rport; |
337 | 338 | ||
@@ -341,7 +342,7 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc( | |||
341 | hash = sctp_assoc_hashfn(ep->base.bind_addr.port, rport); | 342 | hash = sctp_assoc_hashfn(ep->base.bind_addr.port, rport); |
342 | head = &sctp_assoc_hashtable[hash]; | 343 | head = &sctp_assoc_hashtable[hash]; |
343 | read_lock(&head->lock); | 344 | read_lock(&head->lock); |
344 | for (epb = head->chain; epb; epb = epb->next) { | 345 | sctp_for_each_hentry(epb, node, &head->chain) { |
345 | asoc = sctp_assoc(epb); | 346 | asoc = sctp_assoc(epb); |
346 | if (asoc->ep != ep || rport != asoc->peer.port) | 347 | if (asoc->ep != ep || rport != asoc->peer.port) |
347 | goto next; | 348 | goto next; |