Commit 8c46fa96 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

cdrom: fix an incorrect __user annotation on cdrom_sysctl_info

No user pointers for sysctls anymore.

Fixes: 32927393 ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: default avatarbuild test robot <lkp@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7ff0d449
...@@ -3518,7 +3518,7 @@ static int cdrom_print_info(const char *header, int val, char *info, ...@@ -3518,7 +3518,7 @@ static int cdrom_print_info(const char *header, int val, char *info,
} }
static int cdrom_sysctl_info(struct ctl_table *ctl, int write, static int cdrom_sysctl_info(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *ppos) void *buffer, size_t *lenp, loff_t *ppos)
{ {
int pos; int pos;
char *info = cdrom_sysctl_settings.info; char *info = cdrom_sysctl_settings.info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment