]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - print IV only when non NULL
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 23 May 2019 08:50:27 +0000 (10:50 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:30:30 +0000 (15:30 +0800)
commitac9021188bf30465f1b53bc8c9c9013c7cb713c3
treeff37460b861b8be91107f7f7a5362ffc3f62591d
parent11c17c1c907720b71f0965ee901b1e50094a9a82
crypto: caam - print IV only when non NULL

Since 0df56cf9fea5 ("crypto: caam - add ecb(*) support") the IV can be
NULL, so only dump it when it's non NULL as designated by the ivsize
variable.

Fixes: 0df56cf9fea5 ("crypto: caam - add ecb(*) support")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c