diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-09 19:08:18 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-06-10 20:11:33 +0200 |
commit | 8c46fa96822c28ca81036e26c2d963f1fac9a961 (patch) | |
tree | 78487136807f44a8c5f409c220612f76219acbf7 | |
parent | trace: fix an incorrect __user annotation on stack_trace_sysctl (diff) | |
download | linux-8c46fa96822c28ca81036e26c2d963f1fac9a961.tar.xz linux-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>
-rw-r--r-- | drivers/cdrom/cdrom.c | 2 |
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; |