summaryrefslogtreecommitdiffstats
path: root/fs/nls/nls_base.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-01-06 12:46:06 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-11 14:16:58 +0800
commit6b476662b09c393936e0f62c97ad9988d410fd36 (patch)
tree46b91d53182b9d37f525880ffde90eae2201e267 /fs/nls/nls_base.c
parent14aa1a839a33b4ade7479ffcad8a5fabe5cc4000 (diff)
downloadlinux-6b476662b09c393936e0f62c97ad9988d410fd36.tar.gz
linux-6b476662b09c393936e0f62c97ad9988d410fd36.tar.bz2
linux-6b476662b09c393936e0f62c97ad9988d410fd36.zip
crypto: algapi - reject NULL crypto_spawn::inst
It took me a while to notice the bug where the adiantum template left crypto_spawn::inst == NULL, because this only caused problems in certain cases where algorithms are dynamically loaded/unloaded. More improvements are needed, but for now make crypto_init_spawn() reject this case and WARN(), so this type of bug will be noticed immediately in the future. Note: I checked all callers and the adiantum template was the only place that had this wrong. So this WARN shouldn't trigger anymore. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'fs/nls/nls_base.c')
0 files changed, 0 insertions, 0 deletions