aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/usbaudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 5429b169877a..4589c637a25e 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -692,9 +692,9 @@ static int snd_pcm_alloc_vmalloc_buffer(snd_pcm_substream_t *subs, size_t size)
692 if (runtime->dma_area) { 692 if (runtime->dma_area) {
693 if (runtime->dma_bytes >= size) 693 if (runtime->dma_bytes >= size)
694 return 0; /* already large enough */ 694 return 0; /* already large enough */
695 vfree_nocheck(runtime->dma_area); 695 vfree(runtime->dma_area);
696 } 696 }
697 runtime->dma_area = vmalloc_nocheck(size); 697 runtime->dma_area = vmalloc(size);
698 if (! runtime->dma_area) 698 if (! runtime->dma_area)
699 return -ENOMEM; 699 return -ENOMEM;
700 runtime->dma_bytes = size; 700 runtime->dma_bytes = size;
@@ -706,7 +706,7 @@ static int snd_pcm_free_vmalloc_buffer(snd_pcm_substream_t *subs)
706{ 706{
707 snd_pcm_runtime_t *runtime = subs->runtime; 707 snd_pcm_runtime_t *runtime = subs->runtime;
708 if (runtime->dma_area) { 708 if (runtime->dma_area) {
709 vfree_nocheck(runtime->dma_area); 709 vfree(runtime->dma_area);
710 runtime->dma_area = NULL; 710 runtime->dma_area = NULL;
711 } 711 }
712 return 0; 712 return 0;