From: Sridhar Samudrala Date: Mon, 8 Jun 2009 07:27:28 +0000 (-0700) Subject: tun: Fix copy/paste error in tun_get_user X-Git-Tag: MMI-PSA29.97-13-9~27597^2~195 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f536f403979d37021508c5804509a379d853788;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 8d82511aa1bc..d83ccb8c982b 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -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) {