X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fdccp%2Ffeat.c;h=933a0ecf8d463b0649fd69f78335533d86950517;hb=d9089c296bdd82e6c1b7f82d04c11b5decde75e7;hp=4a4f6ce4498d42c77dde9b7a5867575210931b31;hpb=3b470ac43fcd9848fa65e58e54875ad75be61cec;p=linux-2.6 diff --git a/net/dccp/feat.c b/net/dccp/feat.c index 4a4f6ce449..933a0ecf8d 100644 --- a/net/dccp/feat.c +++ b/net/dccp/feat.c @@ -32,7 +32,7 @@ int dccp_feat_change(struct dccp_minisock *dmsk, u8 type, u8 feature, if (len > 3) { DCCP_WARN("invalid length %d\n", len); - return 1; + return -EINVAL; } /* XXX add further sanity checks */