|
@@ -204,7 +204,6 @@ fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f,
|
|
|
if (err < 0)
|
|
|
return err;
|
|
|
|
|
|
- err = -EINVAL;
|
|
|
if (tb[TCA_FW_CLASSID]) {
|
|
|
f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]);
|
|
|
tcf_bind_filter(tp, &f->res, base);
|
|
@@ -218,6 +217,7 @@ fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f,
|
|
|
}
|
|
|
#endif /* CONFIG_NET_CLS_IND */
|
|
|
|
|
|
+ err = -EINVAL;
|
|
|
if (tb[TCA_FW_MASK]) {
|
|
|
mask = nla_get_u32(tb[TCA_FW_MASK]);
|
|
|
if (mask != head->mask)
|