]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca39b4a08cf69075e352dc3dee4b261bee2a1080
treef58d9f0c0ae23ded2f758b73e2c47a97a25376a3
parent0182b6e5258e1a67774d1c24a8c70393f4b78e2c
sctp: Fix regression introduced by new sctp_connectx api

A new (unrealeased to the user) sctp_connectx api

e7a52e586b18587de8aa3bd3b5f35ebc97a80f10
    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