diff options
author | Shan Wei <shanwei@cn.fujitsu.com> | 2011-04-18 15:11:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-20 00:45:18 -0400 |
commit | 33c7cfdbb0d2bc021979e4947c7030c30d572532 (patch) | |
tree | 4efc68e4e16ecb3ad53ad082eabcae92dafd5bcf /net/sctp/sm_statefuns.c | |
parent | 709d38714eff234432956931437457e0de806784 (diff) |
sctp: fix the comment of sctp_sf_violation_paramlen()
Update the comment about sctp_sf_violation_paramlen() to be
more precise.
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 76792083c379..c08547270e8e 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -4343,8 +4343,9 @@ static sctp_disposition_t sctp_sf_violation_chunklen( | |||
4343 | 4343 | ||
4344 | /* | 4344 | /* |
4345 | * Handle a protocol violation when the parameter length is invalid. | 4345 | * Handle a protocol violation when the parameter length is invalid. |
4346 | * "Invalid" length is identified as smaller than the minimal length a | 4346 | * If the length is smaller than the minimum length of a given parameter, |
4347 | * given parameter can be. | 4347 | * or accumulated length in multi parameters exceeds the end of the chunk, |
4348 | * the length is considered as invalid. | ||
4348 | */ | 4349 | */ |
4349 | static sctp_disposition_t sctp_sf_violation_paramlen( | 4350 | static sctp_disposition_t sctp_sf_violation_paramlen( |
4350 | const struct sctp_endpoint *ep, | 4351 | const struct sctp_endpoint *ep, |