Message ID | 1376692475-28413-66-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index ad11dc9..2401d06 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -608,7 +608,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):