All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH CLEANUP] sctp: fix the comment of  sctp_sf_violation_paramlen()
@ 2010-05-17  6:08 Shan Wei
  2010-05-17  6:14 ` Wei Yongjun
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shan Wei @ 2010-05-17  6:08 UTC (permalink / raw)
  To: linux-sctp

The comment about sctp_sf_violation_paramlen() is wrong.

Invalid length should be identified as it does not equal actual length
of a given parameter. The actual length of a given parameter is not including
the padding part.


Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
 net/sctp/sm_statefuns.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index edb71e6..8774a6e 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -4355,8 +4355,8 @@ static sctp_disposition_t sctp_sf_violation_chunklen(
 
 /*
  * Handle a protocol violation when the parameter length is invalid.
- * "Invalid" length is identified as smaller than the minimal length a
- * given parameter can be.
+ * "Invalid" length is identified as it does not equal actual length
+ * of a given parameter.
  */
 static sctp_disposition_t sctp_sf_violation_paramlen(
 				     const struct sctp_endpoint *ep,
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-18 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17  6:08 [PATCH CLEANUP] sctp: fix the comment of sctp_sf_violation_paramlen() Shan Wei
2010-05-17  6:14 ` Wei Yongjun
2010-05-17  7:55 ` Shan Wei
2010-05-17 14:30 ` Vlad Yasevich
2010-05-18 10:08 ` Shan Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.