mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] scsi: check set_identify result in update_links
@ 2026-10-09 10:23 Shirong Zhao
  2026-10-09 10:23 ` [PATCH 1/3] scsi: mpt3sas: " Shirong Zhao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shirong Zhao @ 2026-10-09 10:23 UTC (permalink / raw)
  To: Martin K . Petersen, Sathya Prakash, Sreekanth Reddy, Dongdong Hao
  Cc: James E . J . Bottomley, Kashyap Desai, Sumit Saxena,
	Suganath Prabu Subramani, Ranjan Kumar, MPT-FusionLinux.pdl,
	mpi3mr-linuxdrv.pdl, linux-scsi, linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-09 10:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 10:23 [PATCH 0/3] scsi: check set_identify result in update_links Shirong Zhao
2026-10-09 10:23 ` [PATCH 1/3] scsi: mpt3sas: " Shirong Zhao
2026-10-09 10:23 ` [PATCH 2/3] scsi: mpi3mr: " Shirong Zhao
2026-10-09 10:23 ` [PATCH 3/3] scsi: leapraid: " Shirong Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®