]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/pcm_compat.c
kbuild: Fix gcc -x syntax
[karo-tx-linux.git] / sound / core / pcm_compat.c
index 5fb2e28e796f6a2766146dbdc5234a1de9a71680..91cdf9435feca986cf3be980412b7d21a9dddecd 100644 (file)
@@ -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)