[PATCH 0/3] scsi: check set_identify result in update_links
From: Shirong Zhao
Date: Fri Oct 09 2026 - 06:24:59 EST
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(-)