]> git.baikalelectronics.ru Git - kernel.git/commit
compat_ioctl: block: simplify compat_blkpg_ioctl()
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Nov 2019 10:28:41 +0000 (11:28 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:42:52 +0000 (09:42 +0100)
commit6899a05eeaae72992500f899d19a3c87d74a3bee
treea4a0b6b07eddc75bea66f97bfec4c45e7211939e
parent0fe1889607eb285b066733c0cee8a0286caf0ace
compat_ioctl: block: simplify compat_blkpg_ioctl()

There is no need to go through a compat_alloc_user_space()
copy any more, just wrap the function in a small helper that
works the same way for native and compat mode.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
block/ioctl.c