diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/emu10k1_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index f55395bc911e..b112b295e9c6 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -1755,8 +1755,9 @@ int __devinit snd_emu10k1_create(struct snd_card *card, | |||
1755 | goto error; | 1755 | goto error; |
1756 | } | 1756 | } |
1757 | 1757 | ||
1758 | emu->page_ptr_table = (void **)vmalloc(emu->max_cache_pages * sizeof(void*)); | 1758 | emu->page_ptr_table = vmalloc(emu->max_cache_pages * sizeof(void *)); |
1759 | emu->page_addr_table = (unsigned long*)vmalloc(emu->max_cache_pages * sizeof(unsigned long)); | 1759 | emu->page_addr_table = vmalloc(emu->max_cache_pages * |
1760 | sizeof(unsigned long)); | ||
1760 | if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) { | 1761 | if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) { |
1761 | err = -ENOMEM; | 1762 | err = -ENOMEM; |
1762 | goto error; | 1763 | goto error; |