sctp: Fix regression introduced by new sctp_connectx api
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 11 Nov 2009 08:19:24 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Nov 2009 03:56:51 +0000 (19:56 -0800)
commitf9c67811ebc00a42f62f5d542d3abd36bd49ae35
treef58d9f0c0ae23ded2f758b73e2c47a97a25376a3
parent409b95aff3583c05ac7a9247fa3d8c9aa7f9cae3
sctp: Fix regression introduced by new sctp_connectx api

A new (unrealeased to the user) sctp_connectx api

c6ba68a26645dbc5029a9faa5687ebe6fcfc53e4
    sctp: support non-blocking version of the new sctp_connectx() API

introduced a regression cought by the user regression test
suite.  In particular, the API requires the user library to
re-allocate the buffer and could potentially trigger a SIGFAULT.

This change corrects that regression by passing the original
address buffer to the kernel unmodified, but still allows for
a returned association id.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c