Skip to contentSkip to conversation

misc hw_random fix

PATCH New Jeff Garzik 1 participant 1 message Mar 5, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc hw_random fix

This fixes an array mis-index on non-x86...

Please pull from 'upstream-fixes' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git

to receive the following updates:

 drivers/char/hw_random.c |    2 ++
 1 files changed, 2 insertions(+)

Mark Brown:
Add missing ifdef for VIA RNG code

drivers/char/hw_random.c +2 -0
index b3bc2e3..29dc87e 100644
@@ -131,7 +131,9 @@ enum {
 	rng_hw_none,
 	rng_hw_intel,
 	rng_hw_amd,
+#ifdef __i386__
 	rng_hw_via,
+#endif
 	rng_hw_geode,
 };