1. 06 7月, 2009 1 次提交
    • H
      tun: Fix device unregister race · d23e4365
      Herbert Xu 提交于
      It is currently possible for an asynchronous device unregister
      to cause the same tun device to be unregistered twice.  This
      is because the unregister in tun_chr_close only checks whether
      __tun_get(tfile) != NULL.  This however has nothing to do with
      whether the device has already been unregistered.  All it tells
      you is whether __tun_detach has been called.
      
      This patch fixes this by using the most obvious thing to test
      whether the device has been unregistered.
      
      It also moves __tun_detach outside of rtnl_unlock since nothing
      that it does requires that lock.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d23e4365
  2. 04 7月, 2009 22 次提交
  3. 03 7月, 2009 7 次提交
  4. 01 7月, 2009 10 次提交
新手
引导
客服 返回
顶部