From: Sebastian Andrzej Siewior Date: Fri, 3 Jul 2009 04:09:41 +0000 (+0800) Subject: crypto: ansi_prng - Use just a BH lock X-Git-Tag: v2.6.32-rc1~731^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed94070058033a3c99fe62c90d00c39dc443c679;p=pandora-kernel.git crypto: ansi_prng - Use just a BH lock The current code uses a mix of sping_lock() & spin_lock_irqsave(). This can lead to deadlock with the correct timming & cprng_get_random() + cprng_reset() sequence. I've converted them to bottom half locks since all three user grab just a BH lock so this runs probably in softirq :) Signed-off-by: Sebastian Andrzej Siewior Acked-by: Neil Horman Signed-off-by: Herbert Xu --- Reading git-diff-tree failed