android_kernel_samsung_a7y1.../drivers/scsi/mpt3sas
Sreekanth Reddy 339396d159 scsi: mpt3sas: Fix clear pending bit in ioctl status
[ Upstream commit 782b281883caf70289ba6a186af29441a117d23e ]

When user issues diag register command from application with required size,
and if driver unable to allocate the memory, then it will fail the register
command. While failing the register command, driver is not currently
clearing MPT3_CMD_PENDING bit in ctl_cmds.status variable which was set
before trying to allocate the memory. As this bit is set, subsequent
register command will be failed with BUSY status even when user wants to
register the trace buffer will less memory.

Clear MPT3_CMD_PENDING bit in ctl_cmds.status before returning the diag
register command with no memory status.

Link: https://lore.kernel.org/r/1568379890-18347-4-git-send-email-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:22:39 +02:00
..
mpi
Kconfig
Makefile
mpt3sas_base.c
mpt3sas_base.h
mpt3sas_config.c scsi: mpt3sas: Fix driver modifying persistent data in Manufacturing page11 2020-04-07 12:36:26 +02:00
mpt3sas_ctl.c scsi: mpt3sas: Fix clear pending bit in ioctl status 2020-04-07 13:22:39 +02:00
mpt3sas_ctl.h
mpt3sas_debug.h
mpt3sas_scsih.c scsi: mpt3sas: Fix Sync cache command failure during driver unload 2020-04-07 12:36:24 +02:00
mpt3sas_transport.c
mpt3sas_trigger_diag.c
mpt3sas_trigger_diag.h
mpt3sas_warpdrive.c