]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/cls_api.c
pkt_sched: fix warning in net/sched/sch_hfsc.c
[linux-2.6-omap-h63xx.git] / net / sched / cls_api.c
index 8eb79e92e94cb82348a7cf76e8399f46f86426a7..173fcc4b050ddac8b4470c9616216974312bc121 100644 (file)
@@ -227,7 +227,7 @@ replay:
                err = -ENOENT;
                tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND]);
                if (tp_ops == NULL) {
-#ifdef CONFIG_KMOD
+#ifdef CONFIG_MODULES
                        struct nlattr *kind = tca[TCA_KIND];
                        char name[IFNAMSIZ];
 
@@ -531,7 +531,8 @@ void tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst,
        if (src->action) {
                struct tc_action *act;
                tcf_tree_lock(tp);
-               act = xchg(&dst->action, src->action);
+               act = dst->action;
+               dst->action = src->action;
                tcf_tree_unlock(tp);
                if (act)
                        tcf_action_destroy(act, TCA_ACT_UNBIND);