crypto: ccp - Replace BUG_ON with WARN_ON and a return code
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 1 Oct 2015 21:32:31 +0000 (16:32 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Oct 2015 13:42:15 +0000 (21:42 +0800)
commit355eba5dda6984cbe10fa914e5cc8ef45a34cce2
treecb5b8eb7a43f917ef7e982e0a24e7c1e79c8a8aa
parent9196d9676fe790975fdb1fc03230629139c6ea8e
crypto: ccp - Replace BUG_ON with WARN_ON and a return code

Replace the usage of BUG_ON with WARN_ON and return an error.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes-cmac.c
drivers/crypto/ccp/ccp-crypto-main.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccp/ccp-ops.c