scsi: hpsa: Get rid of compat_alloc_user_space()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 29 May 2020 23:40:27 +0000 (00:40 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jun 2020 14:15:31 +0000 (10:15 -0400)
commit10100ffd5f6584298b72f9fe26f32cf02abfb8b0
tree51a749581d1820e64dabab46d2b3f13d0f3fb125
parentcb17c1b69b175e3f7ae2ef53e384889cdbae5c0d
scsi: hpsa: Get rid of compat_alloc_user_space()

No need for building a native struct on kernel stack, copying it to
userland one, then calling hpsa_ioctl() which copies it back into _another_
instance of the same struct.

Link: https://lore.kernel.org/r/20200529234028.46373-3-viro@ZenIV.linux.org.uk
Acked-by: Don Brace <don.brace@microsemi.com>
Tested-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c