]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/sch_atm.c
sch_atm: Fix potential NULL deref.
[net-next-2.6.git] / net / sched / sch_atm.c
index 3406627895298324fdd9d27186ad8c9c8d9a9964..6318e1136b83de86f1b73150a0a5199522293f4f 100644 (file)
@@ -255,10 +255,6 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent,
                        error = -EINVAL;
                        goto err_out;
                }
-               if (!list_empty(&flow->list)) {
-                       error = -EEXIST;
-                       goto err_out;
-               }
        } else {
                int i;
                unsigned long cl;