summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2012-05-02 23:33:37 +0200
committerGreg Kroah-Hartman2012-05-02 23:33:37 +0200
commiteb1574270a6de8fb8d31ffc3b021e30df0afcda3 (patch)
treed154ba369f222f5108ed1a2462d815d7faadc2e5 /net/core/skbuff.c
parentmemory: emif: add debugfs entries for emif (diff)
parentLinux 3.4-rc5 (diff)
downloadkernel-qcow2-linux-eb1574270a6de8fb8d31ffc3b021e30df0afcda3.tar.gz
kernel-qcow2-linux-eb1574270a6de8fb8d31ffc3b021e30df0afcda3.tar.xz
kernel-qcow2-linux-eb1574270a6de8fb8d31ffc3b021e30df0afcda3.zip
Merge 3.4-rc5 into driver-core-next
This was done to resolve a merge issue with the init/main.c file. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index baf8d281152c..e59840010d45 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -952,9 +952,11 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
goto adjust_others;
}
- data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask);
+ data = kmalloc(size + SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),
+ gfp_mask);
if (!data)
goto nodata;
+ size = SKB_WITH_OVERHEAD(ksize(data));
/* Copy only real data... and, alas, header. This should be
* optimized for the cases when header is void.