[PATCH] trivial __user cleanup (video1394)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
viro@ZenIV.linux.org.uk 2005-09-09 20:26:01 +01:00 committed by Linus Torvalds
parent 18fb944257
commit 21b2922908

View file

@ -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;
}