scsi: hpsa: Don't bother with vmalloc for BIG_IOCTL_Command_struct
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 29 May 2020 23:40:26 +0000 (00:40 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jun 2020 14:15:31 +0000 (10:15 -0400)
commitcb17c1b69b175e3f7ae2ef53e384889cdbae5c0d
tree887a3a4c4bd7d667abd6ff5a193bf305fd5d9396
parent138125f74b254fd2e37b3d875faf8e0e8608299b
scsi: hpsa: Don't bother with vmalloc for BIG_IOCTL_Command_struct

"BIG" in the name refers to the amount of data being transferred, _not_ the
size of structure itself; it's 140 or 144 bytes (for 32bit and 64bit hosts
resp.).  IOCTL_Command_struct is 136 or 144 bytes large...

No point whatsoever turning that into dynamic allocation, let alone vmalloc
one.  Just keep it as local variable...

Link: https://lore.kernel.org/r/20200529234028.46373-2-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