sctp: fix append error cause to ERROR chunk correctly
commita0bda22f42ef2f990578015b8ab34252583121a2
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 18 May 2010 05:51:58 +0000 (17 22:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:11:21 +0000 (5 11:11 -0700)
treeb756d4b1fc70cec1c8a90afbb6180e5e4b48b9ac
parent966399a8b8d957ed59feb7770b33ee16ce0e8fe4
sctp: fix append error cause to ERROR chunk correctly

commit 2e3219b5c8a2e44e0b83ae6e04f52f20a82ac0f2 upstream.

commit 5fa782c2f5ef6c2e4f04d3e228412c9b4a4c8809
  sctp: Fix skb_over_panic resulting from multiple invalid \
    parameter errors (CVE-2010-1173) (v4)

cause 'error cause' never be add the the ERROR chunk due to
some typo when check valid length in sctp_init_cause_fixed().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/sm_make_chunk.c