diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-19 12:07:54 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-21 19:59:21 +0800 |
commit | 8000112cedb8743bad67997a96dc94877a36ce0f (patch) | |
tree | 44e2a1ee6e743fe12e59bf422febb7156a37090a /drivers/crypto/nx/nx-842-platform.c | |
parent | 2df6bb5d8b22bc06a6ea83e8b2a6bcf3bb445304 (diff) | |
download | talos-op-linux-8000112cedb8743bad67997a96dc94877a36ce0f.tar.gz talos-op-linux-8000112cedb8743bad67997a96dc94877a36ce0f.zip |
crypto: nx - Check for bogus firmware properties
The nx driver reads two crucial paramters from the firmware for
each crypto algorithm, the maximum SG list length and byte limit.
Unfortunately those two parameters may be bogus, or worse they
may be absent altogether. When this happens the algorithms will
still register successfully but will fail when used or tested.
This patch adds checks to report any firmware entries which are
found to be bogus, and avoid registering algorithms which have
bogus parameters. A warning is also printed when an algorithm
is not registered because of this as there may have been no firmware
entries for it at all.
Reported-by: Ondrej Moriš <omoris@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx/nx-842-platform.c')
0 files changed, 0 insertions, 0 deletions