staging: unisys: visorhba: fix s-Par to boot with option CONFIG_VMAP_STACK set to y
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Tue, 18 Apr 2017 20:55:25 +0000 (16:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:55:53 +0000 (11:55 +0200)
commit3c2bf0bd08123f3497bd3e84bd9088c937b0cb40
tree8e0594893e9d9382ea7ffb550d61b5716eb6305b
parentbb1fb8ac399f75fccf3da5c7430a40bb0e5f01c8
staging: unisys: visorhba: fix s-Par to boot with option CONFIG_VMAP_STACK set to y

The root issue is that we are not allowed to have items on the
stack being passed to "DMA" like operations. In this case we have
a vmcall and an inline completion of scsi command.

This patch fixes the issue by moving the variables on stack in
do_scsi_nolinuxstat() to heap memory.

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorhba/visorhba_main.c