diff options
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
571 | 571 | ||
572 | if (gso.hdr_len > len) | 572 | if (gso.hdr_len > len) |
573 | return -EINVAL; | 573 | return -EINVAL; |
574 | offset += sizeof(pi); | 574 | offset += sizeof(gso); |
575 | } | 575 | } |
576 | 576 | ||
577 | if ((tun->flags & TUN_TYPE_MASK) == TUN_TAP_DEV) { | 577 | if ((tun->flags & TUN_TYPE_MASK) == TUN_TAP_DEV) { |