diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /sound/usb/6fire/pcm.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
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;  	} |