net: sched: Annotate struct tc_pedit with __counted_by
[linux-2.6-microblaze.git] / net / sched / act_pedit.c
index df5a02d..fc0a35a 100644 (file)
@@ -515,11 +515,11 @@ static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,
                spin_unlock_bh(&p->tcf_lock);
                return -ENOBUFS;
        }
+       opt->nkeys = parms->tcfp_nkeys;
 
        memcpy(opt->keys, parms->tcfp_keys,
               flex_array_size(opt, keys, parms->tcfp_nkeys));
        opt->index = p->tcf_index;
-       opt->nkeys = parms->tcfp_nkeys;
        opt->flags = parms->tcfp_flags;
        opt->action = p->tcf_action;
        opt->refcnt = refcount_read(&p->tcf_refcnt) - ref;