Skip to content

Commit

Permalink
[PATCH] trivial __user cleanup (video1394)
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
viro@ZenIV.linux.org.uk authored and Linus Torvalds committed Sep 9, 2005
1 parent 18fb944 commit 21b2922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ieee1394/video1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 21b2922

Please sign in to comment.