From: Hezekiah Mogere Joseph Mayaka <hmjm081106@gmail.com>
To: Dongdong Hao <doubled@leap-io-kernel.com>,
"Martin K . Petersen" <mkp@kernel.org>,
"James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Hannes Reinecke <hare@kernel.org>,
Damien Le Moal <dlemoal@kernel.org>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
Hezekiah Mogere Joseph Mayaka <hmjm081106@gmail.com>
Subject: [PATCH] scsi: leapraid: fix incorrect dev_hdl logging
Date: Fri, 4 Dec 2026 11:06:42 -0600 [thread overview]
Message-ID: <20261204170642.290027-1-hmjm081106@gmail.com> (raw)
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
reply other threads:[~2026-12-04 17:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204170642.290027-1-hmjm081106@gmail.com \
--to=hmjm081106@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=dlemoal@kernel.org \
--cc=doubled@leap-io-kernel.com \
--cc=hare@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mkp@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®