Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74189
b: refs/heads/master
c: 21df56c
h: refs/heads/master
i:
  74187: 1366860
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Nov 19, 2007
1 parent 78f150d commit 1fbe660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 483b23ffa3a5f44767038b0a676d757e0668437e
refs/heads/master: 21df56c6e2372e09c916111efb6c14c372a5ab2e
3 changes: 3 additions & 0 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,9 @@ static inline struct sk_buff *sk_stream_alloc_pskb(struct sock *sk,
{
struct sk_buff *skb;

/* The TCP header must be at least 32-bit aligned. */
size = ALIGN(size, 4);

skb = alloc_skb_fclone(size + sk->sk_prot->max_header, gfp);
if (skb) {
skb->truesize += mem;
Expand Down

0 comments on commit 1fbe660

Please sign in to comment.