aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/sm_sideeffect.c5
-rw-r--r--net/sctp/sm_statefuns.c18
-rw-r--r--net/sctp/socket.c6
3 files changed, 12 insertions, 17 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index fbb374c65945..c96d1a81cf42 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -1161,9 +1161,8 @@ static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype,
1161 break; 1161 break;
1162 1162
1163 case SCTP_DISPOSITION_VIOLATION: 1163 case SCTP_DISPOSITION_VIOLATION:
1164 if (net_ratelimit()) 1164 net_err_ratelimited("protocol violation state %d chunkid %d\n",
1165 pr_err("protocol violation state %d chunkid %d\n", 1165 state, subtype.chunk);
1166 state, subtype.chunk);
1167 break; 1166 break;
1168 1167
1169 case SCTP_DISPOSITION_NOT_IMPL: 1168 case SCTP_DISPOSITION_NOT_IMPL:
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index a147b4d307d2..9fca10357350 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -1129,17 +1129,15 @@ sctp_disposition_t sctp_sf_backbeat_8_3(const struct sctp_endpoint *ep,
1129 /* This should never happen, but lets log it if so. */ 1129 /* This should never happen, but lets log it if so. */
1130 if (unlikely(!link)) { 1130 if (unlikely(!link)) {
1131 if (from_addr.sa.sa_family == AF_INET6) { 1131 if (from_addr.sa.sa_family == AF_INET6) {
1132 if (net_ratelimit()) 1132 net_warn_ratelimited("%s association %p could not find address %pI6\n",
1133 pr_warn("%s association %p could not find address %pI6\n", 1133 __func__,
1134 __func__, 1134 asoc,
1135 asoc, 1135 &from_addr.v6.sin6_addr);
1136 &from_addr.v6.sin6_addr);
1137 } else { 1136 } else {
1138 if (net_ratelimit()) 1137 net_warn_ratelimited("%s association %p could not find address %pI4\n",
1139 pr_warn("%s association %p could not find address %pI4\n", 1138 __func__,
1140 __func__, 1139 asoc,
1141 asoc, 1140 &from_addr.v4.sin_addr.s_addr);
1142 &from_addr.v4.sin_addr.s_addr);
1143 } 1141 }
1144 return SCTP_DISPOSITION_DISCARD; 1142 return SCTP_DISPOSITION_DISCARD;
1145 } 1143 }
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 92ba71dfe080..b3b8a8d813eb 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5840,10 +5840,8 @@ SCTP_STATIC int sctp_listen_start(struct sock *sk, int backlog)
5840 if (!sctp_sk(sk)->hmac && sctp_hmac_alg) { 5840 if (!sctp_sk(sk)->hmac && sctp_hmac_alg) {
5841 tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC); 5841 tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC);
5842 if (IS_ERR(tfm)) { 5842 if (IS_ERR(tfm)) {
5843 if (net_ratelimit()) { 5843 net_info_ratelimited("failed to load transform for %s: %ld\n",
5844 pr_info("failed to load transform for %s: %ld\n", 5844 sctp_hmac_alg, PTR_ERR(tfm));
5845 sctp_hmac_alg, PTR_ERR(tfm));
5846 }
5847 return -ENOSYS; 5845 return -ENOSYS;
5848 } 5846 }
5849 sctp_sk(sk)->hmac = tfm; 5847 sctp_sk(sk)->hmac = tfm;