compat_ioctl: use correct compat_ptr() translation in drivers
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Sep 2018 15:28:08 +0000 (17:28 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:44 +0000 (17:23 +0200)
commit01b8bca81e181ccca475e1fdb92ebb00d9d9b547
treeadd9d3a93003f7e21c9ede260d97c56b5284fbda
parent1832f2d8ff69138aa70d3cb3b4ea3c2058e73aea
compat_ioctl: use correct compat_ptr() translation in drivers

A handful of drivers all have a trivial wrapper around their ioctl
handler, but don't call the compat_ptr() conversion function at the
moment. In practice this does not matter, since none of them are used
on the s390 architecture and for all other architectures, compat_ptr()
does not do anything, but using the new compat_ptr_ioctl()
helper makes it more correct in theory, and simplifies the code.

I checked that all ioctl handlers in these files are compatible
and take either pointer arguments or no argument.

Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/misc/cxl/flash.c
drivers/misc/genwqe/card_dev.c
drivers/scsi/megaraid/megaraid_mm.c
drivers/usb/gadget/function/f_fs.c