summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-03 08:52:36 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-06-08 17:13:56 +0300
commita2541dcb51127dc31934ab93bc99ae7df458e41b (patch)
tree30f7d860940d89457e8bd5873dda4dc5f8ba819e /drivers
parentc7388c1f8fb6d8687403e9554c873f9df4512797 (diff)
downloadlinux-a2541dcb51127dc31934ab93bc99ae7df458e41b.tar.xz
random: fix an incorrect __user annotation on proc_do_entropy
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 1e0db78b83ba..cf8a43f5eb2a 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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;