]> git.baikalelectronics.ru Git - kernel.git/commit
SCTP: Fix sctp_addto_chunk() to add pad with correct length
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 6 Aug 2007 05:55:47 +0000 (13:55 +0800)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 30 Aug 2007 15:56:17 +0000 (11:56 -0400)
commitaee9e3e61749765ff9f29f696c9b07e28c42aff7
treed003f0eaeae83af128991a9d3d5e0da76df5eda0
parent74d5e6c26dce439750ceb7d8aca2033d3cf5be80
SCTP: Fix sctp_addto_chunk() to add pad with correct length

At function sctp_addto_chunk(), it do pad before add payload to chunk if
chunk length is not 4-byte alignment. But it do pad with a bad length.
This patch fixed this probleam.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_make_chunk.c