diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2009-06-08 00:27:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-08 00:27:28 -0700 |
commit | 6f536f403979d37021508c5804509a379d853788 (patch) | |
tree | d64d26d4e2c2c0bd2a487d9c5db77a4fe8b40969 | |
parent | 2faef52b72958b8b1c08e927b9b0691c314cf6f4 (diff) | |
download | linux-3.10-6f536f403979d37021508c5804509a379d853788.tar.gz linux-3.10-6f536f403979d37021508c5804509a379d853788.tar.bz2 linux-3.10-6f536f403979d37021508c5804509a379d853788.zip |
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>
-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 8d82511aa1b..d83ccb8c982 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) { |