diff options
Diffstat (limited to 'net/sched/sch_prio.c')
-rw-r--r-- | net/sched/sch_prio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index 1641db33a994..3395ca7bcadf 100644 --- a/net/sched/sch_prio.c +++ b/net/sched/sch_prio.c | |||
@@ -165,7 +165,7 @@ static unsigned int prio_drop(struct Qdisc* sch) | |||
165 | 165 | ||
166 | for (prio = q->bands-1; prio >= 0; prio--) { | 166 | for (prio = q->bands-1; prio >= 0; prio--) { |
167 | qdisc = q->queues[prio]; | 167 | qdisc = q->queues[prio]; |
168 | if ((len = qdisc->ops->drop(qdisc)) != 0) { | 168 | if (qdisc->ops->drop && (len = qdisc->ops->drop(qdisc)) != 0) { |
169 | sch->q.qlen--; | 169 | sch->q.qlen--; |
170 | return len; | 170 | return len; |
171 | } | 171 | } |