@@ -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)
{
@@ -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;
@@ -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;
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@vivo.com> --- net/sctp/auth.c | 4 ++-- net/sctp/chunk.c | 2 +- net/sctp/socket.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)