[SCTP]: Correctly initialize error when parameter validation failed.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sun, 20 Jan 2008 14:10:46 +0000 (06:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:08:11 +0000 (15:08 -0800)
commit853f4b505578ea3a1d9c2f5fb4ca58658ea15780
tree86103e8c8e91176d27bc39e9f38da9f7e7ac016f
parent16b4d60b56b9ec922d91cc11ede0bd59033deae4
[SCTP]: Correctly initialize error when parameter validation failed.

When parameter validation fails, there should be error causes that
specify what type of failure we've encountered.  If the causes are not
there, we lacked memory to allocated them.  Thus make that the default
value for the error.

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