Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320520
b: refs/heads/master
c: a117dac
h: refs/heads/master
v: v3
  • Loading branch information
Mathias Krause authored and David S. Miller committed Jul 30, 2012
1 parent 569e933 commit 496a0c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cac83e53917ebc058066eb98023c11fdaa2262dc
refs/heads/master: a117dacde0288f3ec60b6e5bcedae8fa37ee0dfc
4 changes: 3 additions & 1 deletion trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1379,9 +1379,11 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
int vnet_hdr_sz;
int ret;

if (cmd == TUNSETIFF || _IOC_TYPE(cmd) == 0x89)
if (cmd == TUNSETIFF || _IOC_TYPE(cmd) == 0x89) {
if (copy_from_user(&ifr, argp, ifreq_len))
return -EFAULT;
} else
memset(&ifr, 0, sizeof(ifr));

if (cmd == TUNGETFEATURES) {
/* Currently this just means: "what IFF flags are valid?".
Expand Down

0 comments on commit 496a0c3

Please sign in to comment.