[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:
parent
18fb944257
commit
21b2922908
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue