orion: fix the alignment related ath9k crash bug (#5815)
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2010 22:15:44 +0000 (22:15 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2010 22:15:44 +0000 (22:15 +0000)
SVN-Revision: 19387

target/linux/orion/patches/300-skb_cb_align.patch [new file with mode: 0644]

diff --git a/target/linux/orion/patches/300-skb_cb_align.patch b/target/linux/orion/patches/300-skb_cb_align.patch
new file mode 100644 (file)
index 0000000..89563c2
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/include/linux/skbuff.h
++++ b/include/linux/skbuff.h
+@@ -335,7 +335,7 @@ struct sk_buff {
+        * want to keep them across layers you have to do a skb_clone()
+        * first. This is owned by whoever has the skb queued ATM.
+        */
+-      char                    cb[48];
++      char                    cb[48] __attribute__((aligned(8)));
+ #if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
+       void                    *cb_next;
+ #endif