diff options
author | 2022-09-15 14:10:30 +0300 | |
---|---|---|
committer | 2022-09-15 22:04:02 -0400 | |
commit | a113c02f57388fc4d179ac5580303d97a000ede7 (patch) | |
tree | 777bd939d3823fe1d73f4877e3cc508cc54936fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: aic79xx: Use __ro_after_init explicitly (diff) | |
download | linux-dev-a113c02f57388fc4d179ac5580303d97a000ede7.tar.xz linux-dev-a113c02f57388fc4d179ac5580303d97a000ede7.zip |
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: 2bd37e284914 ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions