diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-02-23 08:05:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 23:17:02 +0100 |
commit | 9e924cf4078e377b84e2fd24ae11a61be7c6f5a3 (patch) | |
tree | 65db579eb60e15c4c0126ce0bd35d257ecc542ce /include | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff) | |
download | linux-9e924cf4078e377b84e2fd24ae11a61be7c6f5a3.tar.xz linux-9e924cf4078e377b84e2fd24ae11a61be7c6f5a3.zip |
net_sched: long word align struct qdisc_skb_cb data
netem_skb_cb() does :
return (struct netem_skb_cb *)qdisc_skb_cb(skb)->data;
Unfortunatly struct qdisc_skb_cb data is not long word aligned, so
access to psched_time_t time_to_send uses a non aligned access.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sch_generic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 160a407c1963..04f8556313d5 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -199,7 +199,7 @@ struct tcf_proto { struct qdisc_skb_cb { unsigned int pkt_len; - char data[]; + long data[]; }; static inline int qdisc_qlen(struct Qdisc *q) |