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: firefly_0821_release~41422 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=21b29229086bcaf14c02b160c253095f3bb95f99;p=firefly-linux-kernel-4.4.55.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; }