Commit bd3fda33 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] missing copy_to_user check in tun driver.

parent e6f59c4d
......@@ -475,7 +475,8 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
if (err)
return err;
copy_to_user((void *)arg, &ifr, sizeof(ifr));
if (copy_to_user((void *)arg, &ifr, sizeof(ifr)))
return -EFAULT;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment