Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250977
b: refs/heads/master
c: a08aa35
h: refs/heads/master
i:
  250975: 804598a
v: v3
  • Loading branch information
Ilia Mirkin authored and Linus Torvalds committed May 25, 2011
1 parent b104848 commit 1392e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 4440673a95e63ad888a41db596edaa0c55d3a332
refs/heads/master: a08aa355af18c53f17f499c1cc6e2af66a77ba9b
2 changes: 1 addition & 1 deletion trunk/lib/lru_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
if (e_count > LC_MAX_ACTIVE)
return NULL;

slot = kzalloc(e_count * sizeof(struct hlist_head*), GFP_KERNEL);
slot = kcalloc(e_count, sizeof(struct hlist_head), GFP_KERNEL);
if (!slot)
goto out_fail;
element = kzalloc(e_count * sizeof(struct lc_element *), GFP_KERNEL);
Expand Down

0 comments on commit 1392e05

Please sign in to comment.