Skip to content

Commit a2541dc

Browse files
Christoph HellwigAl Viro
authored andcommitted
random: fix an incorrect __user annotation on proc_do_entropy
No user pointers for sysctls anymore. Fixes: 3292739 ("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>
1 parent c7388c1 commit a2541dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ static int proc_do_uuid(struct ctl_table *table, int write,
20872087
* Return entropy available scaled to integral bits
20882088
*/
20892089
static int proc_do_entropy(struct ctl_table *table, int write,
2090-
void __user *buffer, size_t *lenp, loff_t *ppos)
2090+
void *buffer, size_t *lenp, loff_t *ppos)
20912091
{
20922092
struct ctl_table fake_table;
20932093
int entropy_count;

0 commit comments

Comments
 (0)