Re: [PATCH] crypto: Fix rwsem leak in crypto_user

From: Herbert Xu
Date: Tue Nov 01 2011 - 18:19:23 EST


On Tue, Nov 01, 2011 at 04:08:37PM -0600, Jonathan Corbet wrote:
> 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@xxxxxxx>

Patch applied. Thanks a lot Jon!
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/