From: viro@ZenIV.linux.org.uk Date: Fri, 9 Sep 2005 19:26:01 +0000 (+0100) Subject: [PATCH] trivial __user cleanup (video1394) X-Git-Tag: v2.6.14-rc1~268 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=21b29229086bcaf14c02b160c253095f3bb95f99;p=linux-2.6-omap-h63xx.git [PATCH] trivial __user cleanup (video1394) Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/ieee1394/video1394.c b/drivers/ieee1394/video1394.c index 06759b36afe..9d6facf2f78 100644 --- a/drivers/ieee1394/video1394.c +++ b/drivers/ieee1394/video1394.c @@ -883,7 +883,7 @@ static int __video1394_ioctl(struct file *file, v.channel); } - if (copy_to_user((void *)arg, &v, sizeof(v))) { + if (copy_to_user(argp, &v, sizeof(v))) { /* FIXME : free allocated dma resources */ return -EFAULT; }