diff options
author | Jonathan Corbet <corbet@lwn.net> | 2011-11-02 09:15:16 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-02 09:15:16 +1100 |
commit | 1cedd5203a4c850917011de0eeb6787ca643840e (patch) | |
tree | 20cdde4c2230ce0f1cfcb1331abf3c6596050aad /crypto/testmgr.c | |
parent | b220aa1680ced151bea05d54497bf4b7a76dc7d3 (diff) | |
download | linux-crypto-1cedd5203a4c850917011de0eeb6787ca643840e.tar.gz linux-crypto-1cedd5203a4c850917011de0eeb6787ca643840e.zip |
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>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions