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: v3.0~8655^2~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f536f403979d37021508c5804509a379d853788;p=platform%2Fkernel%2Flinux-amlogic.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 8d82511..d83ccb8 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) {