X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=sound%2Fcore%2Fpcm_compat.c;h=91cdf9435feca986cf3be980412b7d21a9dddecd;hb=02f7a0df82b15ceee37e2e24caa5dd68a2585682;hp=5fb2e28e796f6a2766146dbdc5234a1de9a71680;hpb=7e125f7b9cbfce4101191b8076d606c517a73066;p=karo-tx-linux.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)