Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information