]> 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)
commit0084d8972f1a052ac7c2a7029ea92382a71d4dc4
treea4a0b6b07eddc75bea66f97bfec4c45e7211939e
parent7dfc009449b4884e2afd187ff35a4b9f361a07e0
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