summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-04-17 01:59:13 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-20 18:24:02 +0200
commitb346e492d7127e4332d5a9989b844b2095cc4fcd (patch)
tree3706f0ba4529609b611134dd688b17804b86b8b1 /drivers/i2c/busses
parentLinux 4.17-rc1 (diff)
downloadlinux-b346e492d7127e4332d5a9989b844b2095cc4fcd.tar.xz
linux-b346e492d7127e4332d5a9989b844b2095cc4fcd.zip
crypto: api - fix finding algorithm currently being tested
Commit eb02c38f0197 ("crypto: api - Keep failed instances alive") is making allocating crypto transforms sometimes fail with ELIBBAD, when multiple processes try to access encrypted files with fscrypt for the first time since boot. The problem is that the "request larval" for the algorithm is being mistaken for an algorithm which failed its tests. Fix it by only returning ELIBBAD for "non-larval" algorithms. Also don't leak a reference to the algorithm. Fixes: eb02c38f0197 ("crypto: api - Keep failed instances alive") Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/i2c/busses')
0 files changed, 0 insertions, 0 deletions