]> git.itanic.dy.fi Git - linux-stable/commit
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>
Sat, 24 Mar 2018 09:58:44 +0000 (10:58 +0100)
commit3bc8caed0878d9e3206a40ecf06d025b3086e20f
treef81b6e91b2571bea76f415f66ac84f08d3842d35
parent9bf9e352ed51d4cdee107675609ba12b42d00c5b
staging: unisys: visorhba: fix s-Par to boot with option CONFIG_VMAP_STACK set to y

[ Upstream commit 3c2bf0bd08123f3497bd3e84bd9088c937b0cb40 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorhba/visorhba_main.c