Patch "scsi: qla2xxx: Fix inconsistent format argument type in qla_os.c" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: qla2xxx: Fix inconsistent format argument type in qla_os.c

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-qla2xxx-fix-inconsistent-format-argument-type-i.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4892b2e047eea288d05d9f8f0d5438e8367fd5cd
Author: Ye Bin <yebin10@xxxxxxxxxx>
Date:   Wed Sep 30 10:25:14 2020 +0800

    scsi: qla2xxx: Fix inconsistent format argument type in qla_os.c
    
    [ Upstream commit 250bd00923c72c846092271a9e51ee373db081b6 ]
    
    Fix the following warnings:
    
    [drivers/scsi/qla2xxx/qla_os.c:4882]: (warning) %ld in format string (no. 2)
            requires 'long' but the argument type is 'unsigned long'.
    [drivers/scsi/qla2xxx/qla_os.c:5011]: (warning) %ld in format string (no. 1)
            requires 'long' but the argument type is 'unsigned long'.
    
    Link: https://lore.kernel.org/r/20200930022515.2862532-3-yebin10@xxxxxxxxxx
    Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
    Reviewed-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx>
    Reviewed-by: Nilesh Javali <njavali@xxxxxxxxxxx>
    Signed-off-by: Ye Bin <yebin10@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Stable-dep-of: d721b591b95c ("scsi: qla2xxx: Array index may go out of bound")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 7863ad1390f8a..73f3e51ce9798 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -4604,7 +4604,7 @@ struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
 	}
 	INIT_DELAYED_WORK(&vha->scan.scan_work, qla_scan_work_fn);
 
-	sprintf(vha->host_str, "%s_%ld", QLA2XXX_DRIVER_NAME, vha->host_no);
+	sprintf(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,
@@ -4735,7 +4735,7 @@ qla2x00_uevent_emit(struct scsi_qla_host *vha, u32 code)
 
 	switch (code) {
 	case QLA_UEVENT_CODE_FW_DUMP:
-		snprintf(event_string, sizeof(event_string), "FW_DUMP=%ld",
+		snprintf(event_string, sizeof(event_string), "FW_DUMP=%lu",
 		    vha->host_no);
 		break;
 	default:



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux