scsi: check set_identify result in update_links
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | scsi: mpt3sas: check set_identify result in update_linksdrivers/ | +3 | 0 replies | |
| 2/3 | scsi: mpi3mr: check set_identify result in update_linksdrivers/ | +3 | 0 replies | |
| 3/3 | scsi: leapraid: check set_identify result in update_linksdrivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] scsi: check set_identify result in update_links
update_links() in mpt3sas, mpi3mr and leapraid all ignore the return value of their set_identify helper. On firmware query failure the identify struct is left untouched, and the phy is then attached using a stale sas_address from before the failed query.
This series fixes all three the same way: fold the call into the if condition so a failed query takes the existing zeroing else path, the same "no valid identify" state as an invalid handle or link rate. The next successful link event re-fills the identify.
All three were verified against scsi.git fixes (469fa055664b): each applies cleanly, passes checkpatch --strict with no warnings, and its transport object builds warning-free before and after the change.
Shirong Zhao (3):
scsi: mpt3sas: check set_identify result in update_links
scsi: mpi3mr: check set_identify result in update_links
scsi: leapraid: check set_identify result in update_links
drivers/scsi/leapraid/leapraid_transport.c | 6 +++--- drivers/scsi/mpi3mr/mpi3mr_transport.c | 6 +++--- drivers/scsi/mpt3sas/mpt3sas_transport.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)