summaryrefslogtreecommitdiffstats
path: root/sound/pcmcia
diff options
context:
space:
mode:
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>2018-01-03 16:54:02 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-16 20:07:01 +0100
commit8b159566ab29b01de43d912a760a1634b7b694e4 (patch)
treec0b663ac4187758423877a12299b9bc67e3496a1 /sound/pcmcia
parent5dbe7be7e522e3387c6d599fcc38aa56c299fcfb (diff)
downloadlinux-stable-8b159566ab29b01de43d912a760a1634b7b694e4.tar.gz
linux-stable-8b159566ab29b01de43d912a760a1634b7b694e4.tar.bz2
linux-stable-8b159566ab29b01de43d912a760a1634b7b694e4.zip
scsi: cxlflash: Reset command ioasc
commit 96cf727fe8f102bf92150b741db71ee39fb8c521 upstream. In the event of a command failure, cxlflash returns the failure to the upper layers to process. After processing the error, when the command is queued again, the private command structure will not be zeroed and the ioasc could be stale. Per the SISLite specification, the AFU only sets the ioasc in the presence of a failure. Thus, even though the original command succeeds the second time, the command is considered a failure due to stale ioasc. This cycle repeats indefinitely and can cause a hang or IO failure. To fix the issue, clear the ioasc before queuing any command. [mkp: added Cc: stable per request] Fixes: 479ad8e9d48c ("scsi: cxlflash: Remove zeroing of private command data") Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pcmcia')
0 files changed, 0 insertions, 0 deletions