* [PATCH] scsi: leapraid: fix incorrect dev_hdl logging
@ 2026-12-04 17:06 Hezekiah Mogere Joseph Mayaka
0 siblings, 0 replies; only message in thread
From: Hezekiah Mogere Joseph Mayaka @ 2026-12-04 17:06 UTC (permalink / raw)
To: Dongdong Hao, Martin K . Petersen, James E . J . Bottomley
Cc: Hannes Reinecke, Damien Le Moal, linux-scsi, linux-kernel,
Hezekiah Mogere Joseph Mayaka
dev_hdl is __le16 but is passed to dev_info() without conversion, so
big-endian systems log the wrong handle. Device operation is not
affected.
Print the local hdl variable instead, which already holds the
converted value.
Fixes: 5597088c9e79 ("scsi: leapraid: Add new SCSI driver")
Signed-off-by: Hezekiah Mogere Joseph Mayaka <hmjm081106@gmail.com>
---
drivers/scsi/leapraid/leapraid_func.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/leapraid/leapraid_func.c b/drivers/scsi/leapraid/leapraid_func.c
index 573bccf1a4ce..9547f970a756 100644
--- a/drivers/scsi/leapraid/leapraid_func.c
+++ b/drivers/scsi/leapraid/leapraid_func.c
@@ -4886,7 +4886,7 @@ static void leapraid_scan_vol_after_reset(struct leapraid_adapter *adapter)
leapraid_sas_volume_add(adapter, &evt_data);
dev_info(&adapter->pdev->dev,
"add volume: hdl=0x%04x\n",
- vol_p1->dev_hdl);
+ hdl);
}
}
--
2.56.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-04 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04 17:06 [PATCH] scsi: leapraid: fix incorrect dev_hdl logging Hezekiah Mogere Joseph Mayaka
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®