mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 21:23:23 +00:00
tun: Fix copy/paste error in tun_get_user
Use the right structure while incrementing the offset in tun_get_user. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2faef52b72
commit
6f536f4039
@ -571,7 +571,7 @@ static __inline__ ssize_t tun_get_user(struct tun_struct *tun,
|
||||
|
||||
if (gso.hdr_len > len)
|
||||
return -EINVAL;
|
||||
offset += sizeof(pi);
|
||||
offset += sizeof(gso);
|
||||
}
|
||||
|
||||
if ((tun->flags & TUN_TYPE_MASK) == TUN_TAP_DEV) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user