From: viro@ZenIV.linux.org.uk Date: Fri, 9 Sep 2005 19:26:01 +0000 (+0100) Subject: [PATCH] trivial __user cleanup (video1394) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=21b29229086bcaf14c02b160c253095f3bb95f99;p=openwrt%2Fstaging%2Fblogic.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 06759b36afea..9d6facf2f78f 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; }