Files
linux/drivers
Jason Wang dd38bd8530 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>
2013-01-11 19:42:02 -08:00
..
2013-01-04 23:10:29 +01:00
2013-01-06 00:36:17 +01:00
2012-11-21 12:46:40 -08:00
2012-12-18 15:19:06 +10:30
2013-01-11 19:42:02 -08:00
2012-11-16 08:14:18 -08:00
2012-11-16 08:14:18 -08:00