summaryrefslogtreecommitdiff
path: root/crypto/algapi.c
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2011-11-02 09:15:16 +1100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 02:03:46 +0100
commit9c3dac3965c611945c934b5b589e3720b33bd85f (patch)
tree1fd835668567d7901b25348c203eb4f7c0ce9417 /crypto/algapi.c
parent288195c744c8a2c7bc54373d12d95ac536416036 (diff)
crypto: user - Fix rwsem leak in crypto_user
The list_empty case in crypto_alg_match() will return without calling up_read() on crypto_alg_sem. We could do the "goto out" routine, but the function will clearly do the right thing with that test simply removed. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> (cherry picked from commit fb223c32b4d3ee593c8dce07e983680d06abe387) Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions