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/line6/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/line6/pcm.c')
| -rw-r--r-- | sound/usb/line6/pcm.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/sound/usb/line6/pcm.c b/sound/usb/line6/pcm.c index b3854f8c0c67..72c6f8e82a7e 100644 --- a/sound/usb/line6/pcm.c +++ b/sound/usb/line6/pcm.c @@ -158,8 +158,10 @@ static int line6_buffer_acquire(struct snd_line6_pcm *line6pcm,  	/* Invoked multiple times in a row so allocate once only */  	if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { -		pstr->buffer = kmalloc(line6pcm->line6->iso_buffers * -				       LINE6_ISO_PACKETS * pkt_size, GFP_KERNEL); +		pstr->buffer = +			kmalloc(array3_size(line6pcm->line6->iso_buffers, +					    LINE6_ISO_PACKETS, pkt_size), +				GFP_KERNEL);  		if (!pstr->buffer)  			return -ENOMEM;  	} |