Skip to content
Commit fb223c32 authored by Jonathan Corbet's avatar Jonathan Corbet Committed by Herbert Xu
Browse files

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: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5db017aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment