ar71xx: fix alignment of struct arpt_arp (fixes #14577)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 7 Nov 2015 16:22:38 +0000 (16:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 7 Nov 2015 16:22:38 +0000 (16:22 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47416

target/linux/ar71xx/patches-4.1/910-unaligned_access_hacks.patch

index d98695f2515eece486837ca66fe248ee978850b6..772b4eca11e2198fc9a457b2fd89a7193cd234de 100644 (file)
  }
  
  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.