mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
fec8fe8069
Refreshed all patches Remove upstreamed patches. - 103-MIPS-ath79-fix-register-address-in-ath79_ddr_wb_flus.patch - 403-mtd_fix_cfi_cmdset_0002_status_check.patch - 001-4.11-01-mtd-m25p80-consider-max-message-size-in-m25p80_read.patch - 001-4.15-08-bcm63xx_enet-correct-clock-usage.patch - 001-4.15-09-bcm63xx_enet-do-not-write-to-random-DMA-channel-on-B.patch - 900-gen_stats-fix-netlink-stats-padding.patch Introduce a new backported patch to address ext4 breakage, introduced in 4.9.112 - backport-4.9/500-ext4-fix-check-to-prevent-initializing-reserved-inod.patch This patch has been slightly altered to compensate for a new helper function introduced in later kernels. Also add ARM64_SSBD symbol to ARM64 targets still running kernel 4.9 Compile-tested on: ar71xx, bcm2710 Runtime-tested on: ar71xx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
24 lines
562 B
Diff
24 lines
562 B
Diff
--- a/net/core/skbuff.c
|
|
+++ b/net/core/skbuff.c
|
|
@@ -215,6 +215,9 @@ struct sk_buff *__alloc_skb(unsigned int
|
|
|
|
if (sk_memalloc_socks() && (flags & SKB_ALLOC_RX))
|
|
gfp_mask |= __GFP_MEMALLOC;
|
|
+#ifdef CONFIG_ARCH_IXP4XX
|
|
+ gfp_mask |= GFP_DMA;
|
|
+#endif
|
|
|
|
/* Get the HEAD */
|
|
skb = kmem_cache_alloc_node(cache, gfp_mask & ~__GFP_DMA, node);
|
|
@@ -1224,6 +1227,10 @@ int pskb_expand_head(struct sk_buff *skb
|
|
if (skb_shared(skb))
|
|
BUG();
|
|
|
|
+#ifdef CONFIG_ARCH_IXP4XX
|
|
+ gfp_mask |= GFP_DMA;
|
|
+#endif
|
|
+
|
|
size = SKB_DATA_ALIGN(size);
|
|
|
|
if (skb_pfmemalloc(skb))
|