diff options
author | Jonathan Corbet | 2011-11-01 23:15:16 +0100 |
---|---|---|
committer | Herbert Xu | 2011-11-01 23:15:16 +0100 |
commit | fb223c32b4d3ee593c8dce07e983680d06abe387 (patch) | |
tree | 80b88c2adde46fdd5608989929d54bddf38b513a /crypto/ahash.c | |
parent | crypto: user - Depend on NET instead of selecting it (diff) | |
download | kernel-qcow2-linux-fb223c32b4d3ee593c8dce07e983680d06abe387.tar.gz kernel-qcow2-linux-fb223c32b4d3ee593c8dce07e983680d06abe387.tar.xz kernel-qcow2-linux-fb223c32b4d3ee593c8dce07e983680d06abe387.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/ahash.c')
0 files changed, 0 insertions, 0 deletions