Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78215
b: refs/heads/master
c: 88f8349
h: refs/heads/master
i:
  78213: 8b4d071
  78211: bc4e67f
  78207: 794646b
v: v3
  • Loading branch information
Joonwoo Park authored and David S. Miller committed Jan 28, 2008
1 parent efa5651 commit 7f12b26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: dcaee95a1b396f85cdc28099f39710be328d3a5e
refs/heads/master: 88f8349164cf4035e63db9e6f484e0ce9cb17e47
10 changes: 3 additions & 7 deletions trunk/net/ipv4/fib_semantics.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@ static inline unsigned int fib_laddr_hashfn(__be32 val)
static struct hlist_head *fib_hash_alloc(int bytes)
{
if (bytes <= PAGE_SIZE)
return kmalloc(bytes, GFP_KERNEL);
return kzalloc(bytes, GFP_KERNEL);
else
return (struct hlist_head *)
__get_free_pages(GFP_KERNEL, get_order(bytes));
__get_free_pages(GFP_KERNEL | __GFP_ZERO, get_order(bytes));
}

static void fib_hash_free(struct hlist_head *hash, int bytes)
Expand Down Expand Up @@ -712,12 +712,8 @@ struct fib_info *fib_create_info(struct fib_config *cfg)
if (!new_info_hash || !new_laddrhash) {
fib_hash_free(new_info_hash, bytes);
fib_hash_free(new_laddrhash, bytes);
} else {
memset(new_info_hash, 0, bytes);
memset(new_laddrhash, 0, bytes);

} else
fib_hash_move(new_info_hash, new_laddrhash, new_size);
}

if (!fib_hash_size)
goto failure;
Expand Down

0 comments on commit 7f12b26

Please sign in to comment.