1. 11 1月, 2008 38 次提交
  2. 28 12月, 2007 1 次提交
  3. 23 11月, 2007 1 次提交
    • H
      [CRYPTO] api: Fix potential race in crypto_remove_spawn · 38cb2419
      Herbert Xu 提交于
      As it is crypto_remove_spawn may try to unregister an instance which is
      yet to be registered.  This patch fixes this by checking whether the
      instance has been registered before attempting to remove it.
      
      It also removes a bogus cra_destroy check in crypto_register_instance as
      1) it's outside the mutex;
      2) we have a check in __crypto_register_alg already.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      38cb2419