diff options
| author | Linus Torvalds <[email protected]> | 2024-01-11 14:24:32 -0800 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-01-11 14:24:32 -0800 | 
| commit | 22d29f1112c85c1ad519a8c0403f7f7289cf060c (patch) | |
| tree | 42649f46668e27e25afb6c71065f5ae6698a78e4 /drivers/scsi/lpfc/lpfc_init.c | |
| parent | 4c72e2b8c42e57f65d8fbfb01329e79d2b450653 (diff) | |
| parent | 45a2c87f28ad0ee8c286bb6dd5686bc54f5b7160 (diff) | |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley:
 "Updates to the usual drivers (ufs, mpi3mr, mpt3sas, lpfc, fnic,
  hisi_sas, arcmsr, ) plus the usual assorted minor fixes and updates.
  This time around there's only a single line update to the core, so
  nothing major and barely anything minor"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (135 commits)
  scsi: ufs: core: Simplify ufshcd_auto_hibern8_update()
  scsi: ufs: core: Rename ufshcd_auto_hibern8_enable() and make it static
  scsi: ufs: qcom: Fix ESI vector mask
  scsi: ufs: host: Fix kernel-doc warning
  scsi: hisi_sas: Correct the number of global debugfs registers
  scsi: hisi_sas: Rollback some operations if FLR failed
  scsi: hisi_sas: Check before using pointer variables
  scsi: hisi_sas: Replace with standard error code return value
  scsi: hisi_sas: Set .phy_attached before notifing phyup event HISI_PHYE_PHY_UP_PM
  scsi: ufs: core: Add sysfs node for UFS RTC update
  scsi: ufs: core: Add UFS RTC support
  scsi: ufs: core: Add ufshcd_is_ufs_dev_busy()
  scsi: ufs: qcom: Remove unused definitions
  scsi: ufs: qcom: Use ufshcd_rmwl() where applicable
  scsi: ufs: qcom: Remove support for host controllers older than v2.0
  scsi: ufs: qcom: Simplify ufs_qcom_{assert/deassert}_reset
  scsi: ufs: qcom: Initialize cycles_in_1us variable in ufs_qcom_set_core_clk_ctrl()
  scsi: ufs: qcom: Sort includes alphabetically
  scsi: ufs: qcom: Remove unused ufs_qcom_hosts struct array
  scsi: ufs: qcom: Use dev_err_probe() to simplify error handling of devm_gpiod_get_optional()
  ...
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index e7c47ee185a4..70bcee64bc8c 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -14721,7 +14721,7 @@ out:  int  lpfc_sli4_request_firmware_update(struct lpfc_hba *phba, uint8_t fw_upgrade)  { -	uint8_t file_name[ELX_MODEL_NAME_SIZE]; +	char file_name[ELX_FW_NAME_SIZE] = {0};  	int ret;  	const struct firmware *fw; @@ -14730,7 +14730,7 @@ lpfc_sli4_request_firmware_update(struct lpfc_hba *phba, uint8_t fw_upgrade)  	    LPFC_SLI_INTF_IF_TYPE_2)  		return -EPERM; -	snprintf(file_name, ELX_MODEL_NAME_SIZE, "%s.grp", phba->ModelName); +	scnprintf(file_name, sizeof(file_name), "%s.grp", phba->ModelName);  	if (fw_upgrade == INT_FW_UPGRADE) {  		ret = request_firmware_nowait(THIS_MODULE, FW_ACTION_UEVENT,  |