diff options
| author | Jason Wang <[email protected]> | 2013-01-11 16:59:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-01-11 19:42:02 -0800 |
| commit | 7c0c3b1a8a175437991ccc898ed66ec5e4a96208 (patch) | |
| tree | 504dde46c8ea52d750ebd5e9e55e8c432beb83db /net/lapb/lapb_timer.c | |
| parent | b8deabd3eebaa96cf8d6e290d67b03f36c7f7a41 (diff) | |
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 <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions