mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-03 13:53:48 +00:00
random: fix an incorrect __user annotation on proc_do_entropy
No user pointers for sysctls anymore.
Fixes: 32927393dc
("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>
This commit is contained in:
parent
c7388c1f8f
commit
a2541dcb51
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue