linux/drivers/scsi/mpi3mr
Dan Carpenter a113c02f57 scsi: mpi3mr: Fix error codes in mpi3mr_report_manufacture()
There are three error paths which return success:

1) Propagate the error code from mpi3mr_post_transport_req() if it fails.

2) Return -EINVAL if "ioc_status != MPI3_IOCSTATUS_SUCCESS".

3) Return -EINVAL if "le16_to_cpu(mpi_reply.response_data_length) !=
   sizeof(struct rep_manu_reply)"

Link: https://lore.kernel.org/r/YyMIJh1HU2Qz9+Rs@kili
Fixes: 2bd37e2849 ("scsi: mpi3mr: Add framework to issue MPT transport cmds")
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-09-15 22:04:02 -04:00
..
mpi scsi: mpi3mr: Move data structures/definitions from MPI headers to uapi header 2022-05-02 17:02:41 -04:00
Kconfig scsi: mpi3mr: Add bsg device support 2022-05-02 17:02:41 -04:00
Makefile scsi: mpi3mr: Add framework to add phys to STL 2022-08-22 23:34:05 -04:00
mpi3mr_app.c scsi: mpi3mr: Fix kernel-doc 2022-06-01 22:43:26 -04:00
mpi3mr_debug.h scsi: mpi3mr: Add config and transport related debug flags 2022-08-22 23:34:04 -04:00
mpi3mr_fw.c scsi: mpi3mr: Refresh SAS ports during soft reset 2022-08-31 23:39:39 -04:00
mpi3mr_os.c scsi: mpi3mr: Block I/Os while refreshing target dev objects 2022-08-31 23:39:57 -04:00
mpi3mr_transport.c scsi: mpi3mr: Fix error codes in mpi3mr_report_manufacture() 2022-09-15 22:04:02 -04:00
mpi3mr.h scsi: mpi3mr: Refresh SAS ports during soft reset 2022-08-31 23:39:39 -04:00