Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78214
b: refs/heads/master
c: dcaee95
h: refs/heads/master
v: v3
  • Loading branch information
Joonwoo Park authored and David S. Miller committed Jan 28, 2008
1 parent 8b4d071 commit efa5651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8512430e554a84275669f78f86dce18566d5cf7a
refs/heads/master: dcaee95a1b396f85cdc28099f39710be328d3a5e
9 changes: 3 additions & 6 deletions trunk/net/xfrm/xfrm_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,14 @@ struct hlist_head *xfrm_hash_alloc(unsigned int sz)
struct hlist_head *n;

if (sz <= PAGE_SIZE)
n = kmalloc(sz, GFP_KERNEL);
n = kzalloc(sz, GFP_KERNEL);
else if (hashdist)
n = __vmalloc(sz, GFP_KERNEL, PAGE_KERNEL);
n = __vmalloc(sz, GFP_KERNEL | __GFP_ZERO, PAGE_KERNEL);
else
n = (struct hlist_head *)
__get_free_pages(GFP_KERNEL | __GFP_NOWARN,
__get_free_pages(GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO,
get_order(sz));

if (n)
memset(n, 0, sz);

return n;
}

Expand Down

0 comments on commit efa5651

Please sign in to comment.