From: Jeff Dike Date: Sat, 10 Feb 2007 09:44:05 +0000 (-0800) Subject: [PATCH] uml: locking commentary in the random driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99b0278f95fc9d55adf65133dc678167a88b632a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] uml: locking commentary in the random driver Comment the lack of locking. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index 73b2bdd6d2d3..e942e836f995 100644 --- a/arch/um/drivers/random.c +++ b/arch/um/drivers/random.c @@ -78,6 +78,7 @@ static const struct file_operations rng_chrdev_ops = { .read = rng_dev_read, }; +/* rng_init shouldn't be called more than once at boot time */ static struct miscdevice rng_miscdev = { RNG_MISCDEV_MINOR, RNG_MODULE_NAME,