summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/macvtap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/net/macvtap.c')
-rw-r--r--kernel/drivers/net/macvtap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/net/macvtap.c b/kernel/drivers/net/macvtap.c
index 8c350c5d5..58858c558 100644
--- a/kernel/drivers/net/macvtap.c
+++ b/kernel/drivers/net/macvtap.c
@@ -1054,10 +1054,10 @@ static long macvtap_ioctl(struct file *file, unsigned int cmd,
return 0;
case TUNSETSNDBUF:
- if (get_user(u, up))
+ if (get_user(s, sp))
return -EFAULT;
- q->sk.sk_sndbuf = u;
+ q->sk.sk_sndbuf = s;
return 0;
case TUNGETVNETHDRSZ: