Skip to content

Commit 8c46fa9

Browse files
Christoph HellwigAl Viro
authored andcommitted
cdrom: fix an incorrect __user annotation on cdrom_sysctl_info
No user pointers for sysctls anymore. Fixes: 3292739 ("sysctl: pass kernel pointers to ->proc_handler") Reported-by: build test robot <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 7ff0d44 commit 8c46fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cdrom/cdrom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3518,7 +3518,7 @@ static int cdrom_print_info(const char *header, int val, char *info,
35183518
}
35193519

35203520
static int cdrom_sysctl_info(struct ctl_table *ctl, int write,
3521-
void __user *buffer, size_t *lenp, loff_t *ppos)
3521+
void *buffer, size_t *lenp, loff_t *ppos)
35223522
{
35233523
int pos;
35243524
char *info = cdrom_sysctl_settings.info;

0 commit comments

Comments
 (0)