kernel_samsung_a53x/drivers/scsi/mpt3sas
Ranjan Kumar 76c4dcd5f5 scsi: mpt3sas: Fix loop logic
commit 3c978492c333f0c08248a8d51cecbe5eb5f617c9 upstream.

The retry loop continues to iterate until the count reaches 30, even after
receiving the correct value. Exit loop when a non-zero value is read.

Fixes: 4ca10f3e3174 ("scsi: mpt3sas: Perform additional retries if doorbell read returns 0")
Cc: stable@vger.kernel.org
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20231020105849.6350-1-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 11:43:21 +01:00
..
mpi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_base.c scsi: mpt3sas: Fix loop logic 2024-11-18 11:43:21 +01:00
mpt3sas_base.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_ctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_ctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_scsih.c scsi: mpt3sas: Fix in error path 2024-11-18 10:58:46 +01:00
mpt3sas_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_trigger_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_trigger_diag.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpt3sas_warpdrive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00