diff options
author | Jason Wang <jasowang@redhat.com> | 2013-01-11 16:59:34 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-11 19:42:02 -0800 |
commit | dd38bd853082355641d0034aaf368e13ef2438f8 (patch) | |
tree | d30449d71cc6c1cbe9d5cc412c2046f4c1527c43 /drivers/net/wireless/wl3501_cs.c | |
parent | 7c0c3b1a8a175437991ccc898ed66ec5e4a96208 (diff) |
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 'drivers/net/wireless/wl3501_cs.c')
0 files changed, 0 insertions, 0 deletions