aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-20 18:13:01 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-20 18:13:01 -0700
commit3a682fbd732d3d27bec722a923952b0938e8a404 (patch)
tree715ca6472e7c3d9b354cb8bfa18db74dabcdaeff /net
parentfb65a7c091529bfffb1262515252c0d0f6241c5c (diff)
downloadkernel_samsung_smdk4412-3a682fbd732d3d27bec722a923952b0938e8a404.zip
kernel_samsung_smdk4412-3a682fbd732d3d27bec722a923952b0938e8a404.tar.gz
kernel_samsung_smdk4412-3a682fbd732d3d27bec722a923952b0938e8a404.tar.bz2
pkt_sched: Fix build with NET_SCHED disabled.
The stab bits can't be referenced uniless the full packet scheduler layer is enabled. Reported by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 27a51f0..0ddf692 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -469,7 +469,9 @@ static void __qdisc_destroy(struct rcu_head *head)
struct Qdisc *qdisc = container_of(head, struct Qdisc, q_rcu);
const struct Qdisc_ops *ops = qdisc->ops;
+#ifdef CONFIG_NET_SCHED
qdisc_put_stab(qdisc->stab);
+#endif
gen_kill_estimator(&qdisc->bstats, &qdisc->rate_est);
if (ops->reset)
ops->reset(qdisc);