diff options
author | 2013-01-11 16:59:33 +0000 | |
---|---|---|
committer | 2013-01-11 19:42:02 -0800 | |
commit | 7c0c3b1a8a175437991ccc898ed66ec5e4a96208 (patch) | |
tree | 504dde46c8ea52d750ebd5e9e55e8c432beb83db /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tuntap: switch to use rtnl_dereference() (diff) | |
download | linux-dev-7c0c3b1a8a175437991ccc898ed66ec5e4a96208.tar.xz linux-dev-7c0c3b1a8a175437991ccc898ed66ec5e4a96208.zip |
tuntap: forbid calling TUNSETIFF when detached
Michael points out that even after Stefan's fix the TUNSETIFF is still allowed
to create a new tap device. This because we only check tfile->tun but the
tfile->detached were introduced. Fix this by failing early in tun_set_iff() if
the file is detached. After this fix, there's no need to do the check again in
tun_set_iff(), so this patch removes it.
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions