X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fdccp%2Ffeat.c;h=933a0ecf8d463b0649fd69f78335533d86950517;hb=f58899bb0224741eb0409ada67ecafe90ba137ef;hp=4a4f6ce4498d42c77dde9b7a5867575210931b31;hpb=877c357e7511395bc923ec9efc2e8b021a17ed79;p=pandora-kernel.git diff --git a/net/dccp/feat.c b/net/dccp/feat.c index 4a4f6ce4498d..933a0ecf8d46 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 */