linux-uconsole/drivers/scsi/aacraid
Arnd Bergmann 6dd60eb9b3 scsi: aacraid: Improve compat_ioctl handlers
[ Upstream commit 077054215a ]

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: 572ee53a9b ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:02 +01:00
..
aachba.c SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
aacraid.h
commctrl.c scsi: aacraid: Improve compat_ioctl handlers 2020-12-30 11:53:02 +01:00
comminit.c
commsup.c SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
dpcsup.c
linit.c scsi: aacraid: Improve compat_ioctl handlers 2020-12-30 11:53:02 +01:00
Makefile
nark.c
rkt.c
rx.c
sa.c
src.c
TODO