scsi: mpi3mr: Fix error code in mpi3mr_transport_smp_handler()

The error code from mpi3mr_post_transport_req() is supposed to be passed to
bsg_job_done(job, rc, reslen), but it isn't.

Link: https://lore.kernel.org/r/YyMISJzVDARpVwrr@kili
Fixes: 176d4aa69c ("scsi: mpi3mr: Support SAS transport class callbacks")
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>
This commit is contained in:
Dan Carpenter 2022-09-15 14:11:04 +03:00 committed by Martin K. Petersen
parent a113c02f57
commit 5ba207e55e
1 changed files with 4 additions and 2 deletions

View File

@ -3245,8 +3245,10 @@ mpi3mr_transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost,
dprint_transport_info(mrioc, "sending SMP request\n");
if (mpi3mr_post_transport_req(mrioc, &mpi_request, request_sz,
&mpi_reply, reply_sz, MPI3MR_INTADMCMD_TIMEOUT, &ioc_status))
rc = mpi3mr_post_transport_req(mrioc, &mpi_request, request_sz,
&mpi_reply, reply_sz,
MPI3MR_INTADMCMD_TIMEOUT, &ioc_status);
if (rc)
goto unmap_in;
dprint_transport_info(mrioc,