]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: Improve compat_ioctl handlers
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Oct 2020 16:44:19 +0000 (17:44 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Nov 2020 02:54:11 +0000 (21:54 -0500)
commit024b6d7ffbf091c96e05c985d4cae54cac39890a
treed775ec7d41f8f52d6aba1a46a89c42cf3d2e64ae
parent2688d7c152ef751c3401bb415b3f69055d7ed1a5
scsi: aacraid: Improve compat_ioctl handlers

The use of compat_alloc_user_space() can be easily replaced by handling
compat arguments in the regular handler, and this will make it work for
big-endian kernels as well, which at the moment get an invalid indirect
pointer argument.

Calling aac_ioctl() instead of aac_compat_do_ioctl() means the compat and
native code paths behave the same way again, which they stopped when the
adapter health check was added only in the native function.

Link: https://lore.kernel.org/r/20201030164450.1253641-1-arnd@kernel.org
Fixes: 351e2d5d60fa ("scsi: aacraid: check adapter health")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/commctrl.c
drivers/scsi/aacraid/linit.c