aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-4.1
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-07 16:22:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-07 16:22:38 +0000
commit9dd5c79c473c9ddef1e747edf974da404b3f6a1d (patch)
tree101d9a6eac9939c222cabd13781a264be2c59e0f /target/linux/ar71xx/patches-4.1
parent9fde3614b042c5f452613e70860852daa4ba6b70 (diff)
downloadupstream-9dd5c79c473c9ddef1e747edf974da404b3f6a1d.tar.gz
upstream-9dd5c79c473c9ddef1e747edf974da404b3f6a1d.tar.bz2
upstream-9dd5c79c473c9ddef1e747edf974da404b3f6a1d.zip
ar71xx: fix alignment of struct arpt_arp (fixes #14577)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47416
Diffstat (limited to 'target/linux/ar71xx/patches-4.1')
-rw-r--r--target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch b/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch
index d98695f251..772b4eca11 100644
--- a/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch
+++ b/target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch
@@ -891,3 +891,14 @@
}
static inline struct neighbour *___neigh_lookup_noref(
+--- a/include/uapi/linux/netfilter_arp/arp_tables.h
++++ b/include/uapi/linux/netfilter_arp/arp_tables.h
+@@ -68,7 +68,7 @@ struct arpt_arp {
+ __u8 flags;
+ /* Inverse flags */
+ __u16 invflags;
+-};
++} __attribute__((aligned(4));
+
+ /* Values for "flag" field in struct arpt_ip (general arp structure).
+ * No flags defined yet.