mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 00:34:10 +08:00
tun: Fix formatting.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a117dacde0
commit
8bbb181308
@ -1382,9 +1382,9 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
|
||||
if (cmd == TUNSETIFF || _IOC_TYPE(cmd) == 0x89) {
|
||||
if (copy_from_user(&ifr, argp, ifreq_len))
|
||||
return -EFAULT;
|
||||
} else
|
||||
} else {
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
|
||||
}
|
||||
if (cmd == TUNGETFEATURES) {
|
||||
/* Currently this just means: "what IFF flags are valid?".
|
||||
* This is needed because we never checked for invalid flags on
|
||||
|
Loading…
Reference in New Issue
Block a user