net: fix NULL pointer in skb_segment_list
[platform/kernel/linux-rpi.git] / net / sched / sch_etf.c
index 7a7c50a..d96103b 100644 (file)
@@ -160,7 +160,7 @@ static void report_sock_error(struct sk_buff *skb, u32 err, u8 code)
 }
 
 static int etf_enqueue_timesortedlist(struct sk_buff *nskb, struct Qdisc *sch,
-                                     spinlock_t *root_lock, struct sk_buff **to_free)
+                                     struct sk_buff **to_free)
 {
        struct etf_sched_data *q = qdisc_priv(sch);
        struct rb_node **p = &q->head.rb_root.rb_node, *parent = NULL;
@@ -445,9 +445,6 @@ static void etf_reset(struct Qdisc *sch)
        timesortedlist_clear(sch);
        __qdisc_reset_queue(&sch->q);
 
-       sch->qstats.backlog = 0;
-       sch->q.qlen = 0;
-
        q->last = 0;
 }