diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2023-06-16 18:06:09 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-06-16 18:06:09 +0200 |
commit | 5fc136f3f48ce648d65e28b966a6b3493135af3d (patch) | |
tree | bea2a41e700d285d5ad0ecad8e01cb1844672640 /drivers/scsi/qla2xxx/qla_os.c | |
parent | scsi: ufs: ufs-pci: Add support for Intel Arrow Lake (diff) | |
parent | scsi: qla2xxx: Update version to 10.02.08.400-k (diff) | |
download | linux-5fc136f3f48ce648d65e28b966a6b3493135af3d.tar.xz linux-5fc136f3f48ce648d65e28b966a6b3493135af3d.zip |
Merge patch series "qla2xxx klocwork fixes"
Nilesh Javali <njavali@marvell.com> says:
Please apply the qla2xxx driver klocwork fixes to the scsi tree at
your earliest convenience.
Link: https://lore.kernel.org/r/20230607113843.37185-1-njavali@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 952fd2b5e6da..877e4f446709 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -5088,7 +5088,8 @@ struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *sht, } INIT_DELAYED_WORK(&vha->scan.scan_work, qla_scan_work_fn); - sprintf(vha->host_str, "%s_%lu", QLA2XXX_DRIVER_NAME, vha->host_no); + snprintf(vha->host_str, sizeof(vha->host_str), "%s_%lu", + QLA2XXX_DRIVER_NAME, vha->host_no); ql_dbg(ql_dbg_init, vha, 0x0041, "Allocated the host=%p hw=%p vha=%p dev_name=%s", vha->host, vha->hw, vha, |