random: simplify fips mode
authorMatt Mackall <mpm@selenic.com>
Thu, 20 May 2010 09:55:01 +0000 (19:55 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:36:00 +0000 (15:36 -0400)
commite133225eaec606e3ad08d94347fc40c51f350baa
treeb48c11d61ed944ab9703ee8b8156d4fbfe344b7f
parentc983dc67d7497a1247c9116689198475755144df
random: simplify fips mode

commit e954bc91bdd4bb08b8325478c5004b24a23a3522 upstream.

Rather than dynamically allocate 10 bytes, move it to static allocation.
This saves space and avoids the need for error checking.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[PG: adding this simplifies required updates to random for .34 stable]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/random.c