random: simplify fips mode
authorMatt Mackall <mpm@selenic.com>
Thu, 20 May 2010 09:55:01 +0000 (19:55 +1000)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Oct 2012 21:41:09 +0000 (23:41 +0200)
commitc933f060037d4ea361103da2816235652662f34d
treeb3a6dc5e2da5d163f007b77b5cac74c104276cf7
parent9f12e204003c5a66b2cee9d397c8f14892852a92
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/char/random.c