diff options
author | 2013-09-11 18:09:48 +0800 | |
---|---|---|
committer | 2013-09-12 17:21:42 -0400 | |
commit | 662ca437e714caaab855b12415d6ffd815985bc0 (patch) | |
tree | c8b6eccc605fe52837e21d72bdecbf8e0c71b539 /tools/perf/scripts/python/syscall-counts.py | |
parent | xen-netback: fix possible format string flaw (diff) | |
download | linux-dev-662ca437e714caaab855b12415d6ffd815985bc0.tar.xz linux-dev-662ca437e714caaab855b12415d6ffd815985bc0.zip |
tuntap: correctly handle error in tun_set_iff()
Commit c8d68e6be1c3b242f1c598595830890b65cea64a
(tuntap: multiqueue support) only call free_netdev() on error in
tun_set_iff(). This causes several issues:
- memory of tun security were leaked
- use after free since the flow gc timer was not deleted and the tfile
were not detached
This patch solves the above issues.
Reported-by: Wannes Rombouts <wannes.rombouts@epitech.eu>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions