diff options
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/input.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index e22b326b3540..94f7f44049a6 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -718,9 +718,9 @@ static void __sctp_hash_endpoint(struct sctp_endpoint *ep) | |||
718 | epb->hashent = sctp_ep_hashfn(net, epb->bind_addr.port); | 718 | epb->hashent = sctp_ep_hashfn(net, epb->bind_addr.port); |
719 | head = &sctp_ep_hashtable[epb->hashent]; | 719 | head = &sctp_ep_hashtable[epb->hashent]; |
720 | 720 | ||
721 | sctp_write_lock(&head->lock); | 721 | write_lock(&head->lock); |
722 | hlist_add_head(&epb->node, &head->chain); | 722 | hlist_add_head(&epb->node, &head->chain); |
723 | sctp_write_unlock(&head->lock); | 723 | write_unlock(&head->lock); |
724 | } | 724 | } |
725 | 725 | ||
726 | /* Add an endpoint to the hash. Local BH-safe. */ | 726 | /* Add an endpoint to the hash. Local BH-safe. */ |
@@ -744,9 +744,9 @@ static void __sctp_unhash_endpoint(struct sctp_endpoint *ep) | |||
744 | 744 | ||
745 | head = &sctp_ep_hashtable[epb->hashent]; | 745 | head = &sctp_ep_hashtable[epb->hashent]; |
746 | 746 | ||
747 | sctp_write_lock(&head->lock); | 747 | write_lock(&head->lock); |
748 | hlist_del_init(&epb->node); | 748 | hlist_del_init(&epb->node); |
749 | sctp_write_unlock(&head->lock); | 749 | write_unlock(&head->lock); |
750 | } | 750 | } |
751 | 751 | ||
752 | /* Remove endpoint from the hash. Local BH-safe. */ | 752 | /* Remove endpoint from the hash. Local BH-safe. */ |
@@ -798,9 +798,9 @@ static void __sctp_hash_established(struct sctp_association *asoc) | |||
798 | 798 | ||
799 | head = &sctp_assoc_hashtable[epb->hashent]; | 799 | head = &sctp_assoc_hashtable[epb->hashent]; |
800 | 800 | ||
801 | sctp_write_lock(&head->lock); | 801 | write_lock(&head->lock); |
802 | hlist_add_head(&epb->node, &head->chain); | 802 | hlist_add_head(&epb->node, &head->chain); |
803 | sctp_write_unlock(&head->lock); | 803 | write_unlock(&head->lock); |
804 | } | 804 | } |
805 | 805 | ||
806 | /* Add an association to the hash. Local BH-safe. */ | 806 | /* Add an association to the hash. Local BH-safe. */ |
@@ -828,9 +828,9 @@ static void __sctp_unhash_established(struct sctp_association *asoc) | |||
828 | 828 | ||
829 | head = &sctp_assoc_hashtable[epb->hashent]; | 829 | head = &sctp_assoc_hashtable[epb->hashent]; |
830 | 830 | ||
831 | sctp_write_lock(&head->lock); | 831 | write_lock(&head->lock); |
832 | hlist_del_init(&epb->node); | 832 | hlist_del_init(&epb->node); |
833 | sctp_write_unlock(&head->lock); | 833 | write_unlock(&head->lock); |
834 | } | 834 | } |
835 | 835 | ||
836 | /* Remove association from the hash table. Local BH-safe. */ | 836 | /* Remove association from the hash table. Local BH-safe. */ |