diff options
Diffstat (limited to 'sound/core/pcm_compat.c')
| -rw-r--r-- | sound/core/pcm_compat.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 39d853bfa5ac..946ab080ac00 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c @@ -426,7 +426,7 @@ static int snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream *substream,  	    get_user(frames, &data32->frames))  		return -EFAULT;  	bufptr = compat_ptr(buf); -	bufs = kmalloc(sizeof(void __user *) * ch, GFP_KERNEL); +	bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL);  	if (bufs == NULL)  		return -ENOMEM;  	for (i = 0; i < ch; i++) {  |