]> Pileus Git - ~andy/linux/blobdiff - drivers/net/tun.c
tun: avoid owner checks on IFF_ATTACH_QUEUE
[~andy/linux] / drivers / net / tun.c
index cf6da6efc71a6284a212594a8d7513817c503cc4..99b58d86217474d1b537d4e9976acf3d6c1d697e 100644 (file)
@@ -1791,8 +1791,6 @@ static int tun_set_queue(struct file *file, struct ifreq *ifr)
                tun = tfile->detached;
                if (!tun)
                        ret = -EINVAL;
-               else if (tun_not_capable(tun))
-                       ret = -EPERM;
                else
                        ret = tun_attach(tun, file);
        } else if (ifr->ifr_flags & IFF_DETACH_QUEUE) {