Message ID | 20111102234028.GP31337@atomide.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Tony Lindgren <tony@atomide.com> Date: Wed, 2 Nov 2011 16:40:28 -0700 > Subject: [PATCH] net: Add back alignment for size for __alloc_skb Applied, thanks a lot! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -189,6 +189,7 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask, * aligned memory blocks, unless SLUB/SLAB debug is enabled. * Both skb->head and skb_shared_info are cache line aligned. */ + size = SKB_DATA_ALIGN(size); size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); data = kmalloc_node_track_caller(size, gfp_mask, node); if (!data)