Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fixes from James Bottomley:
"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)"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: ufs: amd-versal2: Fix PHY initialization in HCE enable notify
scsi: firewire: sbp-target: Fix overflow in sbp_make_tpg()
scsi: be2iscsi: Fix a memory leak in beiscsi_boot_get_sinfo()
scsi: qla2xxx: edif: Fix dma_free_coherent() size

+5 -4
+1
drivers/scsi/be2iscsi/be_mgmt.c
··· 1025 1025 &nonemb_cmd->dma, 1026 1026 GFP_KERNEL); 1027 1027 if (!nonemb_cmd->va) { 1028 + free_mcc_wrb(ctrl, tag); 1028 1029 mutex_unlock(&ctrl->mbox_lock); 1029 1030 return 0; 1030 1031 }
+1 -1
drivers/scsi/qla2xxx/qla_os.c
··· 4489 4489 fail_elsrej: 4490 4490 dma_pool_destroy(ha->purex_dma_pool); 4491 4491 fail_flt: 4492 - dma_free_coherent(&ha->pdev->dev, SFP_DEV_SIZE, 4492 + dma_free_coherent(&ha->pdev->dev, sizeof(struct qla_flt_header) + FLT_REGIONS_SIZE, 4493 4493 ha->flt, ha->flt_dma); 4494 4494 4495 4495 fail_flt_buffer:
+2 -2
drivers/target/sbp/sbp_target.c
··· 1960 1960 container_of(wwn, struct sbp_tport, tport_wwn); 1961 1961 1962 1962 struct sbp_tpg *tpg; 1963 - unsigned long tpgt; 1963 + u16 tpgt; 1964 1964 int ret; 1965 1965 1966 1966 if (strstr(name, "tpgt_") != name) 1967 1967 return ERR_PTR(-EINVAL); 1968 - if (kstrtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX) 1968 + if (kstrtou16(name + 5, 10, &tpgt)) 1969 1969 return ERR_PTR(-EINVAL); 1970 1970 1971 1971 if (tport->tpg) {
+1 -1
drivers/ufs/host/ufs-amd-versal2.c
··· 367 367 { 368 368 int ret = 0; 369 369 370 - if (status == PRE_CHANGE) { 370 + if (status == POST_CHANGE) { 371 371 ret = ufs_versal2_phy_init(hba); 372 372 if (ret) 373 373 dev_err(hba->dev, "Phy init failed (%d)\n", ret);