git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: api - Fix algorithm module auto-loading
[safe/jmp/linux-2.6]
/
crypto
/
api.c
diff --git
a/crypto/api.c
b/crypto/api.c
index
314dab9
..
fd2545d
100644
(file)
--- a/
crypto/api.c
+++ b/
crypto/api.c
@@
-221,7
+221,8
@@
struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
request_module(name);
- if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask) &&
+ if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
+ CRYPTO_ALG_NEED_FALLBACK) &&
snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp))
request_module(tmp);