]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cdrom: fix an incorrect __user annotation on cdrom_sysctl_info
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Jun 2020 17:08:18 +0000 (19:08 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Jun 2020 18:11:33 +0000 (14:11 -0400)
No user pointers for sysctls anymore.

Fixes: ecad013df758 ("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>
drivers/cdrom/cdrom.c

index e3bbe108eb542fc953bbcea544e0bd944ffe272c..410060812e9dbff7bc1083a3609d0fcf807afb1c 100644 (file)
@@ -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;