X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=sound%2Fcore%2Fpcm_compat.c;h=91cdf9435feca986cf3be980412b7d21a9dddecd;hb=81d86e1b70961f4816f961875e0c706b0954acad;hp=5fb2e28e796f6a2766146dbdc5234a1de9a71680;hpb=7a996d3ab150bb0e1b71fa182f70199a703efdd1;p=cascardo%2Flinux.git diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 5fb2e28e796f..91cdf9435fec 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c @@ -342,7 +342,7 @@ static int snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream *substream, kfree(bufs); return -EFAULT; } - bufs[ch] = compat_ptr(ptr); + bufs[i] = compat_ptr(ptr); bufptr++; } if (dir == SNDRV_PCM_STREAM_PLAYBACK)