Skip to content

scsi: check set_identify result in update_links

Shirong Zhao linux-scsi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scsi: mpt3sas: check set_identify result in update_linksdrivers/scsi/mpt3sas/mpt3sas_transport.c+3 -30 replies
2/3scsi: mpi3mr: check set_identify result in update_linksdrivers/scsi/mpi3mr/mpi3mr_transport.c+3 -30 replies
3/3scsi: leapraid: check set_identify result in update_linksdrivers/scsi/leapraid/leapraid_transport.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)