Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102518
b: refs/heads/master
c: 4e3e6dc
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed May 12, 2008
1 parent ed2e4b2 commit 2337655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 20c2c1fd6c842caf70dcb1d94b9d58861949fd3d
refs/heads/master: 4e3e6dcb43c3669a8817cb3d0f920f91661afd98
7 changes: 2 additions & 5 deletions trunk/net/tipc/name_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,15 +1050,12 @@ void tipc_nametbl_dump(void)

int tipc_nametbl_init(void)
{
int array_size = sizeof(struct hlist_head) * tipc_nametbl_size;

table.types = kzalloc(array_size, GFP_ATOMIC);
table.types = kcalloc(tipc_nametbl_size, sizeof(struct hlist_head),
GFP_ATOMIC);
if (!table.types)
return -ENOMEM;

write_lock_bh(&tipc_nametbl_lock);
table.local_publ_count = 0;
write_unlock_bh(&tipc_nametbl_lock);
return 0;
}

Expand Down

0 comments on commit 2337655

Please sign in to comment.