Re: [PATCH v3] crypto: remove instance when test failed

2015-04-09 Thread Stephan Mueller
Am Donnerstag, 9. April 2015, 17:40:35 schrieb Herbert Xu: Hi Herbert, On Thu, Apr 09, 2015 at 11:22:19AM +0200, Stephan Mueller wrote: I tested it and this approach does not work. If I see that right, the reason for that is the following: The suggestion is to grab the ref count at the

Re: [PATCH v3] crypto: remove instance when test failed

2015-04-09 Thread Herbert Xu
On Thu, Apr 09, 2015 at 09:36:03AM +0200, Stephan Mueller wrote: diff --git a/crypto/algapi.c b/crypto/algapi.c index f1d0307..cfca1de 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -533,6 +533,13 @@ int crypto_register_instance(struct crypto_template *tmpl, if