diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-12-06 20:34:55 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:29 -0800 |
commit | 8210fd2a9fe4b36e99ab777a1a81eb47b703c235 (patch) | |
tree | e39b0dd28492a6255928557504284fe6e99eead6 /arch/um/drivers/mcast_kern.c | |
parent | e46962fdd28f8b30b465e507b657627aa4c1a409 (diff) | |
download | op-kernel-dev-8210fd2a9fe4b36e99ab777a1a81eb47b703c235.zip op-kernel-dev-8210fd2a9fe4b36e99ab777a1a81eb47b703c235.tar.gz |
[PATCH] uml: use get_random_bytes() after random pool is seeded
When the UML network driver generates random MACs for its devices, it was
possible for a number of UMLs to get the same MACs because the ethernet
initialization was done before the random pool was properly seeded.
This patch moves the initialization later so that it gets better randomness.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/mcast_kern.c')
-rw-r--r-- | arch/um/drivers/mcast_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/mcast_kern.c b/arch/um/drivers/mcast_kern.c index c090fbd..52ccb7b 100644 --- a/arch/um/drivers/mcast_kern.c +++ b/arch/um/drivers/mcast_kern.c @@ -127,4 +127,4 @@ static int register_mcast(void) return 0; } -__initcall(register_mcast); +late_initcall(register_mcast); |