diff options
author | Quinn Tran <qutran@marvell.com> | 2024-02-27 19:41:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-03 16:29:01 +0300 |
commit | ef23850940d9a52c39936d27254824ccf5e9b6bd (patch) | |
tree | ad98b0a34a13a4e6ed75222ab01458626cc4bed2 /drivers/scsi/qla2xxx/qla_os.c | |
parent | db4aaf281a5be7d562cdb76926f3e23bf4f8f843 (diff) | |
download | linux-ef23850940d9a52c39936d27254824ccf5e9b6bd.tar.xz |
scsi: qla2xxx: Prevent command send on chip reset
commit 4895009c4bb72f71f2e682f1e7d2c2d96e482087 upstream.
Currently IOCBs are allowed to push through while chip reset could be in
progress. During chip reset the outstanding_cmds array is cleared
twice. Once when any command on this array is returned as failed and
secondly when the array is initialize to zero. If a command is inserted on
to the array between these intervals, then the command will be lost. Check
for chip reset before sending IOCB.
Cc: stable@vger.kernel.org
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240227164127.36465-2-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
0 files changed, 0 insertions, 0 deletions