diff options
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r-- | net/sched/sch_netem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index ae49be00022f..a59085700678 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -84,8 +84,9 @@ struct netem_skb_cb { | |||
84 | 84 | ||
85 | static inline struct netem_skb_cb *netem_skb_cb(struct sk_buff *skb) | 85 | static inline struct netem_skb_cb *netem_skb_cb(struct sk_buff *skb) |
86 | { | 86 | { |
87 | BUILD_BUG_ON(sizeof(skb->cb) < sizeof(struct netem_skb_cb)); | 87 | BUILD_BUG_ON(sizeof(skb->cb) < |
88 | return (struct netem_skb_cb *)skb->cb; | 88 | sizeof(struct qdisc_skb_cb) + sizeof(struct netem_skb_cb)); |
89 | return (struct netem_skb_cb *)qdisc_skb_cb(skb)->data; | ||
89 | } | 90 | } |
90 | 91 | ||
91 | /* init_crandom - initialize correlated random number generator | 92 | /* init_crandom - initialize correlated random number generator |