random: fix an incorrect __user annotation on proc_do_entropy
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jun 2020 05:52:36 +0000 (07:52 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jun 2020 14:13:56 +0000 (10:13 -0400)
No user pointers for sysctls anymore.

Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: build test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/random.c

index 1e0db78b83baae01cdb3b23e981a5a8e1a850b4c..cf8a43f5eb2a02c6ff17856c5940b47b92126d22 100644 (file)
@@ -2087,7 +2087,7 @@ static int proc_do_uuid(struct ctl_table *table, int write,
  * Return entropy available scaled to integral bits
  */
 static int proc_do_entropy(struct ctl_table *table, int write,
-                          void __user *buffer, size_t *lenp, loff_t *ppos)
+                          void *buffer, size_t *lenp, loff_t *ppos)
 {
        struct ctl_table fake_table;
        int entropy_count;