From: Jonathan Corbet Date: Tue, 1 Nov 2011 22:15:16 +0000 (+1100) Subject: crypto: user - Fix rwsem leak in crypto_user X-Git-Tag: v3.2-rc2~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb223c32b4d3ee593c8dce07e983680d06abe387;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed