]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix reporting of unknown parameters
authorJiri Bohac <jbohac@suse.cz>
Thu, 17 Feb 2011 13:12:08 +0000 (13:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Feb 2011 03:06:55 +0000 (19:06 -0800)
commit4d6223e51497293b95ec7d41515c099410f9734d
tree440ff9d40ce5eeee3c85e22feea20f2a0c4d4065
parent6e5448a445d786e7f11801ad8394d63bfa38bd7c
sctp: fix reporting of unknown parameters

commit 345b7d8a44a532d3a5c2f339c6fb82c972893756 re-worked the
handling of unknown parameters. sctp_init_cause_fixed() can now
return -ENOSPC if there is not enough tailroom in the error
chunk skb. When this happens, the error header is not appended to
the error chunk. In that case, the payload of the unknown parameter
should not be appended either.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c