[crypto] patch to fix bad test definition check in prng

From: Neil Horman
Date: Tue Jul 15 2008 - 11:34:56 EST


Patch to fix bad check of TEST_PRNG_ON_START in prng module. This should fix
the oopses that simon and ingo recently reported.

Signed-off-by: Neil Horman <nhorman@xxxxxxxxxxxxx>


prng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/crypto/prng.c b/crypto/prng.c
index b28f89a..7aeb0d0 100644
--- a/crypto/prng.c
+++ b/crypto/prng.c
@@ -396,7 +396,7 @@ EXPORT_SYMBOL_GPL(reset_prng_context);
static int __init prng_mod_init(void)
{

-#ifdef TEST_PRNG_ON_START
+#if TEST_PRNG_ON_START
int i;
unsigned char tmpbuf[DEFAULT_BLK_SZ];

--
/****************************************************
* Neil Horman <nhorman@xxxxxxxxxxxxx>
* Software Engineer, Red Hat
****************************************************/
--
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/