Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262679
b: refs/heads/master
c: 67ada83
h: refs/heads/master
i:
  262677: 8ca39c2
  262675: 37c1fae
  262671: da1a2ba
v: v3
  • Loading branch information
Thomas Meyer authored and Takashi Iwai committed Aug 7, 2011
1 parent d5d33e5 commit 91e6977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: f4389489b5cbe60b3441869c68bb4afe760969c4
refs/heads/master: 67ada8367c323ce13d0268c87cf09bf8af956e92
5 changes: 2 additions & 3 deletions trunk/sound/pci/asihpi/hpicmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,12 @@ struct hpi_control_cache *hpi_alloc_control_cache(const u32 control_count,
if (!p_cache)
return NULL;

p_cache->p_info =
kmalloc(sizeof(*p_cache->p_info) * control_count, GFP_KERNEL);
p_cache->p_info = kzalloc(sizeof(*p_cache->p_info) * control_count,
GFP_KERNEL);
if (!p_cache->p_info) {
kfree(p_cache);
return NULL;
}
memset(p_cache->p_info, 0, sizeof(*p_cache->p_info) * control_count);
p_cache->cache_size_in_bytes = size_in_bytes;
p_cache->control_count = control_count;
p_cache->p_cache = p_dsp_control_buffer;
Expand Down

0 comments on commit 91e6977

Please sign in to comment.