Jonathan Corbet fb223c32b4 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>
2011-11-02 09:15:16 +11:00
..
2011-07-26 16:49:47 -07:00
2011-10-21 14:24:03 +02:00
2011-03-31 11:26:23 -03:00
2010-02-16 20:26:46 +08:00
2010-12-02 14:47:16 +08:00
2010-11-13 21:47:55 +09:00
2010-02-16 20:29:45 +08:00
2010-05-26 10:36:51 +10:00
2008-06-02 15:46:51 +10:00
2010-02-16 20:33:49 +08:00
2010-12-02 14:47:16 +08:00
2008-08-29 15:50:02 +10:00
2010-12-02 14:47:16 +08:00
2011-10-21 14:24:03 +02:00
2008-04-21 10:19:34 +08:00
2009-02-17 20:00:11 +08:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:16 +11:00
2010-03-02 21:58:16 +08:00
2011-07-26 16:49:47 -07:00
2007-10-10 16:55:38 -07:00
2008-04-21 10:19:34 +08:00
2011-10-21 14:28:58 +02:00
2008-04-21 10:19:34 +08:00
2011-10-21 14:28:58 +02:00
2011-10-21 14:28:58 +02:00
2008-12-25 11:02:21 +11:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00