diff options
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 99c0501ca513..6d82f400d13c 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -771,6 +771,9 @@ static void __sctp_hash_established(struct sctp_association *asoc) | |||
771 | /* Add an association to the hash. Local BH-safe. */ | 771 | /* Add an association to the hash. Local BH-safe. */ |
772 | void sctp_hash_established(struct sctp_association *asoc) | 772 | void sctp_hash_established(struct sctp_association *asoc) |
773 | { | 773 | { |
774 | if (asoc->temp) | ||
775 | return; | ||
776 | |||
774 | sctp_local_bh_disable(); | 777 | sctp_local_bh_disable(); |
775 | __sctp_hash_established(asoc); | 778 | __sctp_hash_established(asoc); |
776 | sctp_local_bh_enable(); | 779 | sctp_local_bh_enable(); |
@@ -804,6 +807,9 @@ static void __sctp_unhash_established(struct sctp_association *asoc) | |||
804 | /* Remove association from the hash table. Local BH-safe. */ | 807 | /* Remove association from the hash table. Local BH-safe. */ |
805 | void sctp_unhash_established(struct sctp_association *asoc) | 808 | void sctp_unhash_established(struct sctp_association *asoc) |
806 | { | 809 | { |
810 | if (asoc->temp) | ||
811 | return; | ||
812 | |||
807 | sctp_local_bh_disable(); | 813 | sctp_local_bh_disable(); |
808 | __sctp_unhash_established(asoc); | 814 | __sctp_unhash_established(asoc); |
809 | sctp_local_bh_enable(); | 815 | sctp_local_bh_enable(); |