crypto: drbg - report backend_cra_name when allocation fails
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Wed, 10 Jun 2015 13:27:48 +0000 (22:27 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Jun 2015 13:55:28 +0000 (21:55 +0800)
commit593dfbd9ca7d8d6f9a01020426b680b78b86bdb2
tree7f4854cfa732851778802991e6e1fb76906e71be
parent42ea507fae1ac4b4af0d9d715ab56fa4de2a0341
crypto: drbg - report backend_cra_name when allocation fails

Be more verbose and also report ->backend_cra_name when
crypto_alloc_shash() or crypto_alloc_cipher() fail in
drbg_init_hash_kernel() or drbg_init_sym_kernel()
correspondingly.

Example
 DRBG: could not allocate digest TFM handle: hmac(sha256)

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c