dccp: return -EINVAL on invalid feature length
authorChris Wright <chrisw@sous-sol.org>
Mon, 5 May 2008 20:50:24 +0000 (13:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2008 20:50:24 +0000 (13:50 -0700)
dccp_feat_change() validates length and on error is returning 1.
This happens to work since call chain is checking for 0 == success,
but this is returned to userspace, so make it a real error value.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found