[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240924062203.3127621-1-yujiaoliang@vivo.com>
Date: Tue, 24 Sep 2024 14:22:03 +0800
From: Yu Jiaoliang <yujiaoliang@...o.com>
To: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Xin Long <lucien.xin@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
linux-sctp@...r.kernel.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com
Subject: [PATCH v1 net-next] sctp: Fix typos in comments across various files
This commit corrects spelling errors in comments
within the stcp subsystem to enhance clarity and
maintainability of the code.
Signed-off-by: Yu Jiaoliang <yujiaoliang@...o.com>
---
net/sctp/auth.c | 4 ++--
net/sctp/chunk.c | 2 +-
net/sctp/socket.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/sctp/auth.c b/net/sctp/auth.c
index c58fffc86a0c..4bec21f8cb36 100644
--- a/net/sctp/auth.c
+++ b/net/sctp/auth.c
@@ -460,7 +460,7 @@ int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp)
if (ep->auth_hmacs)
return 0;
- /* Allocated the array of pointers to transorms */
+ /* Allocated the array of pointers to transforms */
ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS,
sizeof(struct crypto_shash *),
gfp);
@@ -774,7 +774,7 @@ int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id)
return 0;
}
-/* Add hmac identifires to the endpoint list of supported hmac ids */
+/* Add hmac identifiers to the endpoint list of supported hmac ids */
int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep,
struct sctp_hmacalgo *hmacs)
{
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c
index fd4f8243cc35..19f4562a3b7f 100644
--- a/net/sctp/chunk.c
+++ b/net/sctp/chunk.c
@@ -68,7 +68,7 @@ void sctp_datamsg_free(struct sctp_datamsg *msg)
sctp_datamsg_put(msg);
}
-/* Final destructruction of datamsg memory. */
+/* Final destruction of datamsg memory. */
static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
{
struct sctp_association *asoc = NULL;
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 32f76f1298da..9fe18414a355 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -6631,7 +6631,7 @@ static int sctp_getsockopt_associnfo(struct sock *sk, int len,
sctp_style(sk, UDP))
return -EINVAL;
- /* Values correspoinding to the specific association */
+ /* Values corresponding to the specific association */
if (asoc) {
assocparams.sasoc_asocmaxrxt = asoc->max_retrans;
assocparams.sasoc_peer_rwnd = asoc->peer.rwnd;
--
2.34.1
Powered by blists - more mailing lists