diff options
author | 2013-01-11 16:59:34 +0000 | |
---|---|---|
committer | 2013-01-11 19:42:02 -0800 | |
commit | dd38bd853082355641d0034aaf368e13ef2438f8 (patch) | |
tree | d30449d71cc6c1cbe9d5cc412c2046f4c1527c43 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tuntap: forbid calling TUNSETIFF when detached (diff) | |
download | linux-dev-dd38bd853082355641d0034aaf368e13ef2438f8.tar.xz linux-dev-dd38bd853082355641d0034aaf368e13ef2438f8.zip |
tuntap: fix leaking reference count
Reference count leaking of both module and sock were found:
- When a detached file were closed, its sock refcnt from device were not
released, solving this by add the sock_put().
- The module were hold or drop unconditionally in TUNSETPERSIST, which means we
if we set the persist flag for N times, we need unset it for another N
times. Solving this by only hold or drop an reference when there's a flag
change and also drop the reference count when the persist device is deleted.
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