Message ID | 1376476624-10011-38-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 54b422e..956c75d 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -584,7 +584,7 @@ static long snd_compr_ioctl(struct file *f, unsigned int cmd, unsigned long arg) mutex_lock(&stream->device->lock); switch (_IOC_NR(cmd)) { case _IOC_NR(SNDRV_COMPRESS_IOCTL_VERSION): - put_user(SNDRV_COMPRESS_VERSION, + retval = put_user(SNDRV_COMPRESS_VERSION, (int __user *)arg) ? -EFAULT : 0; break; case _IOC_NR(SNDRV_COMPRESS_GET_CAPS):