summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-09 19:08:18 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-06-10 14:11:33 -0400
commit8c46fa96822c28ca81036e26c2d963f1fac9a961 (patch)
tree78487136807f44a8c5f409c220612f76219acbf7 /drivers/cdrom
parent7ff0d4490ebadae8037a079a70c5cac13385a808 (diff)
downloadlinux-stable-8c46fa96822c28ca81036e26c2d963f1fac9a961.tar.gz
linux-stable-8c46fa96822c28ca81036e26c2d963f1fac9a961.tar.bz2
linux-stable-8c46fa96822c28ca81036e26c2d963f1fac9a961.zip
cdrom: fix an incorrect __user annotation on cdrom_sysctl_info
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/cdrom')
-rw-r--r--drivers/cdrom/cdrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index e3bbe108eb54..410060812e9d 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -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,
- void __user *buffer, size_t *lenp, loff_t *ppos)
+ void *buffer, size_t *lenp, loff_t *ppos)
{
int pos;
char *info = cdrom_sysctl_settings.info;