projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2faef52
)
tun: Fix copy/paste error in tun_get_user
author
Sridhar Samudrala
<sri@us.ibm.com>
Mon, 8 Jun 2009 07:27:28 +0000
(
00:27
-0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Jun 2009 07:27:28 +0000
(
00:27
-0700)
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>
drivers/net/tun.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index 8d82511aa1bca6c134d8828d6962082160502bba..d83ccb8c982b9d8f8e68eea52de61d1b68c875ba 100644
(file)
--- 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) {