[GIT PULL] SCSI fixes for 6.19-rc7

James Bottomley posted 1 patch 5 days, 15 hours ago
drivers/scsi/be2iscsi/be_mgmt.c    | 1 +
drivers/scsi/qla2xxx/qla_os.c      | 2 +-
drivers/target/sbp/sbp_target.c    | 4 ++--
drivers/ufs/host/ufs-amd-versal2.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
[GIT PULL] SCSI fixes for 6.19-rc7
Posted by James Bottomley 5 days, 15 hours ago
Small changes in drivers only, no core changes.  The firewire one fixes
a user controlled overflow (but I still can't see how it could be
exploited).

The patch is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes

The short changelog is:

Ajay Neeli (1):
      scsi: ufs: amd-versal2: Fix PHY initialization in HCE enable notify

Haoxiang Li (1):
      scsi: be2iscsi: Fix a memory leak in beiscsi_boot_get_sinfo()

Kery Qi (1):
      scsi: firewire: sbp-target: Fix overflow in sbp_make_tpg()

Thomas Fourier (1):
      scsi: qla2xxx: edif: Fix dma_free_coherent() size

And the dffstat:

 drivers/scsi/be2iscsi/be_mgmt.c    | 1 +
 drivers/scsi/qla2xxx/qla_os.c      | 2 +-
 drivers/target/sbp/sbp_target.c    | 4 ++--
 drivers/ufs/host/ufs-amd-versal2.c | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

With full diff below.

Regards,

James

---

diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c
index 4e899ec1477d..b1cba986f0fb 100644
--- a/drivers/scsi/be2iscsi/be_mgmt.c
+++ b/drivers/scsi/be2iscsi/be_mgmt.c
@@ -1025,6 +1025,7 @@ unsigned int beiscsi_boot_get_sinfo(struct beiscsi_hba *phba)
 					      &nonemb_cmd->dma,
 					      GFP_KERNEL);
 	if (!nonemb_cmd->va) {
+		free_mcc_wrb(ctrl, tag);
 		mutex_unlock(&ctrl->mbox_lock);
 		return 0;
 	}
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 16a44c0917e1..e939bc88e151 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -4489,7 +4489,7 @@ qla2x00_mem_alloc(struct qla_hw_data *ha, uint16_t req_len, uint16_t rsp_len,
 fail_elsrej:
 	dma_pool_destroy(ha->purex_dma_pool);
 fail_flt:
-	dma_free_coherent(&ha->pdev->dev, SFP_DEV_SIZE,
+	dma_free_coherent(&ha->pdev->dev, sizeof(struct qla_flt_header) + FLT_REGIONS_SIZE,
 	    ha->flt, ha->flt_dma);
 
 fail_flt_buffer:
diff --git a/drivers/target/sbp/sbp_target.c b/drivers/target/sbp/sbp_target.c
index 9f167ff8da7b..09120a538a40 100644
--- a/drivers/target/sbp/sbp_target.c
+++ b/drivers/target/sbp/sbp_target.c
@@ -1960,12 +1960,12 @@ static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn,
 		container_of(wwn, struct sbp_tport, tport_wwn);
 
 	struct sbp_tpg *tpg;
-	unsigned long tpgt;
+	u16 tpgt;
 	int ret;
 
 	if (strstr(name, "tpgt_") != name)
 		return ERR_PTR(-EINVAL);
-	if (kstrtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX)
+	if (kstrtou16(name + 5, 10, &tpgt))
 		return ERR_PTR(-EINVAL);
 
 	if (tport->tpg) {
diff --git a/drivers/ufs/host/ufs-amd-versal2.c b/drivers/ufs/host/ufs-amd-versal2.c
index 40543db621a1..6c454ae8a9c8 100644
--- a/drivers/ufs/host/ufs-amd-versal2.c
+++ b/drivers/ufs/host/ufs-amd-versal2.c
@@ -367,7 +367,7 @@ static int ufs_versal2_hce_enable_notify(struct ufs_hba *hba,
 {
 	int ret = 0;
 
-	if (status == PRE_CHANGE) {
+	if (status == POST_CHANGE) {
 		ret = ufs_versal2_phy_init(hba);
 		if (ret)
 			dev_err(hba->dev, "Phy init failed (%d)\n", ret);
Re: [GIT PULL] SCSI fixes for 6.19-rc7
Posted by pr-tracker-bot@kernel.org 5 days, 9 hours ago
The pull request you sent on Sun, 01 Feb 2026 15:10:23 +0100:

> git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9f2693489ef8558240d9e80bfad103650daed0af

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html