diff options
Diffstat (limited to 'sound/usb/6fire/pcm.c')
| -rw-r--r-- | sound/usb/6fire/pcm.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/sound/usb/6fire/pcm.c b/sound/usb/6fire/pcm.c index 224a6a5d1c0e..2dd2518a71d3 100644 --- a/sound/usb/6fire/pcm.c +++ b/sound/usb/6fire/pcm.c @@ -591,12 +591,14 @@ static int usb6fire_pcm_buffers_init(struct pcm_runtime *rt)  	int i;  	for (i = 0; i < PCM_N_URBS; i++) { -		rt->out_urbs[i].buffer = kzalloc(PCM_N_PACKETS_PER_URB -				* PCM_MAX_PACKET_SIZE, GFP_KERNEL); +		rt->out_urbs[i].buffer = kcalloc(PCM_MAX_PACKET_SIZE, +						 PCM_N_PACKETS_PER_URB, +						 GFP_KERNEL);  		if (!rt->out_urbs[i].buffer)  			return -ENOMEM; -		rt->in_urbs[i].buffer = kzalloc(PCM_N_PACKETS_PER_URB -				* PCM_MAX_PACKET_SIZE, GFP_KERNEL); +		rt->in_urbs[i].buffer = kcalloc(PCM_MAX_PACKET_SIZE, +						PCM_N_PACKETS_PER_URB, +						GFP_KERNEL);  		if (!rt->in_urbs[i].buffer)  			return -ENOMEM;  	} |