Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f536f40 authored by Sridhar Samudrala's avatar Sridhar Samudrala Committed by David S. Miller
Browse files

tun: Fix copy/paste error in tun_get_user



Use the right structure while incrementing the offset in tun_get_user.

Signed-off-by: default avatarSridhar Samudrala <sri@us.ibm.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2faef52b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {