Skip to contentSkip to conversation

qla2xxx klocwork fixes

PATCH Applied Nilesh Javali 4 participants 20 messages Jun 7, 2023 – Jun 22, 2023

Subsystems (2)
lore
Share & tools
lore

Nilesh Javali

author maintainer
#0 lore raw

v2 cover qla2xxx klocwork fixes

Martin,

Please apply the qla2xxx driver klocwork fixes to
the scsi tree at your earliest convenience.

Thanks,
Nilesh

v2:
- Incorporate review comments for patch 2/8, 3/8, 7/8.

Bikash Hazarika (2):
qla2xxx: klocwork - Fix potential null pointer dereference
qla2xxx: klocwork - correct the index of array

Nilesh Javali (4):
qla2xxx: klocwork - Array index may go out of bound
qla2xxx: klocwork - avoid fcport pointer dereference
qla2xxx: klocwork - Check valid rport returned by fc_bsg_to_rport
qla2xxx: Update version to 10.02.08.400-k

Quinn Tran (1):
qla2xxx: klocwork - Fix buffer overrun

Shreyas Deodhar (1):
qla2xxx: klocwork - pointer may be dereferenced

 drivers/scsi/qla2xxx/qla_bsg.c     | 6 ++++++
 drivers/scsi/qla2xxx/qla_edif.c    | 4 ++--
 drivers/scsi/qla2xxx/qla_init.c    | 2 +-
 drivers/scsi/qla2xxx/qla_inline.h  | 5 ++++-
 drivers/scsi/qla2xxx/qla_iocb.c    | 3 ++-
 drivers/scsi/qla2xxx/qla_os.c      | 3 ++-
 drivers/scsi/qla2xxx/qla_version.h | 4 ++--
 7 files changed, 19 insertions(+), 8 deletions(-)

base-commit: 44ef1604ae9492a7d9238ea79aa0cc7b4c4de860

Signature · 1 line
2.23.1
author maintainer
#1 lore raw

PATCH v2 1/8 qla2xxx: klocwork - Array index may go out of bound

Klocwork reports array 'vha->host_str' of size 16 may use index value(s) 16..19.
Use snprintf instead of sprintf.

---
 drivers/scsi/qla2xxx/qla_os.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_os.c +2 -1
index bc89d3da8fd0..3bace9ea6288 100644
@@ -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,
Signature · 1 line
2.23.1
Reviewed-by on v2 1/8
#2 lore raw

Re: [PATCH v2 1/8] qla2xxx: klocwork - Array index may go out of bound

Quoted 32 lines · Nilesh Javali

Klocwork reports array 'vha->host_str' of size 16
may use index value(s) 16..19.
Use snprintf instead of sprintf.

---
drivers/scsi/qla2xxx/qla_os.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_os.c +2 -1
index bc89d3da8fd0..3bace9ea6288 100644
@@ -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,
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#3 lore raw

PATCH v2 2/8 qla2xxx: klocwork - Fix potential null pointer dereference

In reply to Nilesh Javali

From: Bikash Hazarika <[email protected]>

Klocwork tool reported 'cur_dsd' may be dereferenced. Add fix to validate pointer before dereferencing the pointer.

---
v2:
- check tot_dsds to suppress kw warning.

 drivers/scsi/qla2xxx/qla_iocb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_iocb.c +2 -1
index 6acfdcc48b16..a1675f056a5c 100644
@@ -607,7 +607,8 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
 	put_unaligned_le32(COMMAND_TYPE_6, &cmd_pkt->entry_type);
 
 	/* No data transfer */
-	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
+	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE ||
+	    tot_dsds == 0) {
 		cmd_pkt->byte_count = cpu_to_le32(0);
 		return 0;
 	}
Signature · 1 line
2.23.1
Reviewed-by on v2 2/8
#4 lore raw

Re: [PATCH v2 2/8] qla2xxx: klocwork - Fix potential null pointer dereference

Quoted 37 lines · Nilesh Javali

From: Bikash Hazarika <[email protected]>

Klocwork tool reported 'cur_dsd' may be dereferenced. Add fix to validate pointer before dereferencing the pointer.

---
v2:
- check tot_dsds to suppress kw warning.

drivers/scsi/qla2xxx/qla_iocb.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_iocb.c +2 -1
index 6acfdcc48b16..a1675f056a5c 100644
@@ -607,7 +607,8 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
 put_unaligned_le32(COMMAND_TYPE_6, &cmd_pkt->entry_type);
 
 /* No data transfer */
- if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
+ if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE ||
+    tot_dsds == 0) {
 cmd_pkt->byte_count = cpu_to_le32(0);
 return 0;
 }
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#5 lore raw

PATCH v2 3/8 qla2xxx: klocwork - avoid fcport pointer dereference

In reply to Nilesh Javali

Klocwork reported warning of null pointer may be dereferenced. The routine exits when sa_ctl is NULL and fcport is allocated after the exit call thus causing NULL fcport pointer to dereference at the time of exit.

To avoid fcport pointer dereference, exit the routine when sa_ctl is NULL.

---
v2:
- Exit the routine if sa_ctl is NULL.

 drivers/scsi/qla2xxx/qla_edif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_edif.c +2 -2
index ec0e20255bd3..26e6b3e3af43 100644
@@ -2361,8 +2361,8 @@ qla24xx_issue_sa_replace_iocb(scsi_qla_host_t *vha, struct qla_work_evt *e)
 	if (!sa_ctl) {
 		ql_dbg(ql_dbg_edif, vha, 0x70e6,
 		    "sa_ctl allocation failed\n");
-		rval =  -ENOMEM;
-		goto done;
+		rval = -ENOMEM;
+		return rval;
 	}
 
 	fcport = sa_ctl->fcport;
Signature · 1 line
2.23.1
Reviewed-by on v2 3/8
#6 lore raw

Re: [PATCH v2 3/8] qla2xxx: klocwork - avoid fcport pointer dereference

Quoted 39 lines · Nilesh Javali

Klocwork reported warning of null pointer may be dereferenced. The routine exits when sa_ctl is NULL and fcport is allocated after the exit call thus causing NULL fcport pointer to dereference at the time of exit.

To avoid fcport pointer dereference, exit the routine when sa_ctl is NULL.

---
v2:
- Exit the routine if sa_ctl is NULL.

drivers/scsi/qla2xxx/qla_edif.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_edif.c +2 -2
index ec0e20255bd3..26e6b3e3af43 100644
@@ -2361,8 +2361,8 @@ qla24xx_issue_sa_replace_iocb(scsi_qla_host_t *vha, struct qla_work_evt *e)
 if (!sa_ctl) {
 ql_dbg(ql_dbg_edif, vha, 0x70e6,
   "sa_ctl allocation failed\n");
- rval =  -ENOMEM;
- goto done;
+ rval = -ENOMEM;
+ return rval;
 }
 
 fcport = sa_ctl->fcport;
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#7 lore raw

PATCH v2 4/8 qla2xxx: klocwork - Check valid rport returned by fc_bsg_to_rport

In reply to Nilesh Javali

Klocwork reported warning of rport maybe NULL and will be dereferenced.
rport returned by call to fc_bsg_to_rport could be NULL and dereferenced.

Check valid rport returned by fc_bsg_to_rport.

---
 drivers/scsi/qla2xxx/qla_bsg.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/scsi/qla2xxx/qla_bsg.c +4 -0
index dba7bba788d7..c928b27061a9 100644
@@ -283,6 +283,10 @@ qla2x00_process_els(struct bsg_job *bsg_job)
 
 	if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 		rport = fc_bsg_to_rport(bsg_job);
+		if (!rport) {
+			rval = -ENOMEM;
+			goto done;
+		}
 		fcport = *(fc_port_t **) rport->dd_data;
 		host = rport_to_shost(rport);
 		vha = shost_priv(host);
Signature · 1 line
2.23.1
Reviewed-by on v2 4/8
#8 lore raw

Re: [PATCH v2 4/8] qla2xxx: klocwork - Check valid rport returned by fc_bsg_to_rport

Quoted 35 lines · Nilesh Javali

Klocwork reported warning of rport maybe NULL and will be dereferenced.
rport returned by call to fc_bsg_to_rport could be NULL and dereferenced.

Check valid rport returned by fc_bsg_to_rport.

---
drivers/scsi/qla2xxx/qla_bsg.c | 4 ++++

1 file changed, 4 insertions(+)
drivers/scsi/qla2xxx/qla_bsg.c +4 -0
index dba7bba788d7..c928b27061a9 100644
@@ -283,6 +283,10 @@ qla2x00_process_els(struct bsg_job *bsg_job)
 
 if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 rport = fc_bsg_to_rport(bsg_job);
+ if (!rport) {
+ rval = -ENOMEM;
+ goto done;
+ }
 fcport = *(fc_port_t **) rport->dd_data;
 host = rport_to_shost(rport);
 vha = shost_priv(host);
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#9 lore raw

PATCH v2 5/8 qla2xxx: klocwork - Fix buffer overrun

In reply to Nilesh Javali

From: Quinn Tran <[email protected]>

Klocwork warning: Buffer Overflow - Array Index Out of Bounds

Driver uses fc_els_flogi to calculate size of buffer. The actual buffer is nested inside of fc_els_flogi which is smaller.

Replace structure name to allow proper size calculation.

---
 drivers/scsi/qla2xxx/qla_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_init.c +1 -1
index 0df6eae7324e..b0225f6f3221 100644
@@ -5549,7 +5549,7 @@ static void qla_get_login_template(scsi_qla_host_t *vha)
 	__be32 *q;
 
 	memset(ha->init_cb, 0, ha->init_cb_size);
-	sz = min_t(int, sizeof(struct fc_els_flogi), ha->init_cb_size);
+	sz = min_t(int, sizeof(struct fc_els_csp), ha->init_cb_size);
 	rval = qla24xx_get_port_login_templ(vha, ha->init_cb_dma,
 					    ha->init_cb, sz);
 	if (rval != QLA_SUCCESS) {
Signature · 1 line
2.23.1
Reviewed-by on v2 5/8
#10 lore raw

Re: [PATCH v2 5/8] qla2xxx: klocwork - Fix buffer overrun

Quoted 37 lines · Nilesh Javali

From: Quinn Tran <[email protected]>

Klocwork warning: Buffer Overflow - Array Index Out of Bounds

Driver uses fc_els_flogi to calculate size of buffer. The actual buffer is nested inside of fc_els_flogi which is smaller.

Replace structure name to allow proper size calculation.

---
drivers/scsi/qla2xxx/qla_init.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_init.c +1 -1
index 0df6eae7324e..b0225f6f3221 100644
@@ -5549,7 +5549,7 @@ static void qla_get_login_template(scsi_qla_host_t *vha)
 __be32 *q;
 
 memset(ha->init_cb, 0, ha->init_cb_size);
- sz = min_t(int, sizeof(struct fc_els_flogi), ha->init_cb_size);
+ sz = min_t(int, sizeof(struct fc_els_csp), ha->init_cb_size);
 rval = qla24xx_get_port_login_templ(vha, ha->init_cb_dma,
   ha->init_cb, sz);
 if (rval != QLA_SUCCESS) {
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
#11 lore raw

Re: [PATCH v2 5/8] qla2xxx: klocwork - Fix buffer overrun

In reply to Nilesh Javali
Quoted 7 lines · Nilesh Javali

From: Quinn Tran <[email protected]>

Klocwork warning: Buffer Overflow - Array Index Out of Bounds

Driver uses fc_els_flogi to calculate size of buffer. The actual buffer is nested inside of fc_els_flogi which is smaller.

To be honest, I don't really understand where either fc_els_flogi or fc_els_csp structs are involved in this. Is that the source buffer? We are copying data to ha->init_cb which is type init_cb_t.

The names "ha->init_cb" and "ha->init_cb_size" match and how the size is set (in qla2x00_probe_one()) is like this:

        ha->init_cb_size = sizeof(init_cb_t);
                ha->init_cb_size = sizeof(struct mid_init_cb_24xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_24xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);
                ha->init_cb_size = sizeof(struct mid_init_cb_81xx);

I don't understand the Klocwork warning either...

Quoted 15 lines

Replace structure name to allow proper size calculation.

---
 drivers/scsi/qla2xxx/qla_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_init.c +0 -0
index 0df6eae7324e..b0225f6f3221 100644

drivers/scsi/qla2xxx/qla_init.c static void qla_get_login_template(scsi_qla_host_t *vha) · line 5551

Quoted 3 lines
drivers/scsi/qla2xxx/qla_init.c +0 -0
@@ -5549,7 +5549,7 @@ static void qla_get_login_template(scsi_qla_host_t *vha)
 	__be32 *q;
 
 	memset(ha->init_cb, 0, ha->init_cb_size);
               ^^^^^^^^^^^

drivers/scsi/qla2xxx/qla_init.c static void qla_get_login_template(scsi_qla_host_t *vha) · line 5552

Quoted 2 lines
drivers/scsi/qla2xxx/qla_init.c +1 -1
-	sz = min_t(int, sizeof(struct fc_els_flogi), ha->init_cb_size);
+	sz = min_t(int, sizeof(struct fc_els_csp), ha->init_cb_size);

It's strange that we are checking min_t() after a memset(). Normally you check first then memset.

drivers/scsi/qla2xxx/qla_init.c static void qla_get_login_template(scsi_qla_host_t *vha) · line 5554

Quoted 2 lines
drivers/scsi/qla2xxx/qla_init.c +0 -0
 	rval = qla24xx_get_port_login_templ(vha, ha->init_cb_dma,
 					    ha->init_cb, sz);
                                            ^^^^^^^^^^^^^^^^

sz is used as the size of ha->init_cb here, and then again at the the end of the function.

regards,
dan carpenter

author maintainer
#12 lore raw

PATCH v2 6/8 qla2xxx: klocwork - pointer may be dereferenced

In reply to Nilesh Javali

From: Shreyas Deodhar <[email protected]>

Klocwork tool reported pointer 'rport' returned from call to function 'fc_bsg_to_rport' may be NULL and will be dereferenced.

Add a fix to validate rport before dereferencing.

---
 drivers/scsi/qla2xxx/qla_bsg.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/scsi/qla2xxx/qla_bsg.c +2 -0
index c928b27061a9..19bb64bdd88b 100644
@@ -2996,6 +2996,8 @@ qla24xx_bsg_request(struct bsg_job *bsg_job)
 
 	if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 		rport = fc_bsg_to_rport(bsg_job);
+		if (!rport)
+			return ret;
 		host = rport_to_shost(rport);
 		vha = shost_priv(host);
 	} else {
Signature · 1 line
2.23.1
Reviewed-by on v2 6/8
#13 lore raw

Re: [PATCH v2 6/8] qla2xxx: klocwork - pointer may be dereferenced

Quoted 35 lines · Nilesh Javali

From: Shreyas Deodhar <[email protected]>

Klocwork tool reported pointer 'rport' returned from call to function 'fc_bsg_to_rport' may be NULL and will be dereferenced.

Add a fix to validate rport before dereferencing.

---
drivers/scsi/qla2xxx/qla_bsg.c | 2 ++

1 file changed, 2 insertions(+)
drivers/scsi/qla2xxx/qla_bsg.c +2 -0
index c928b27061a9..19bb64bdd88b 100644
@@ -2996,6 +2996,8 @@ qla24xx_bsg_request(struct bsg_job *bsg_job)
 
 if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 rport = fc_bsg_to_rport(bsg_job);
+ if (!rport)
+ return ret;
 host = rport_to_shost(rport);
 vha = shost_priv(host);
 } else {
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#14 lore raw

PATCH v2 7/8 qla2xxx: klocwork - correct the index of array

In reply to Nilesh Javali

From: Bikash Hazarika <[email protected]>

Klocwork reported array 'port_dstate_str' of size
10 may use index value(s) 10..15.

Add a fix to correct the index of array.

---
v2:
- Remove the outer parenthesis.

 drivers/scsi/qla2xxx/qla_inline.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_inline.h +4 -1
index cce6e425c121..946a39504a35 100644
@@ -109,11 +109,13 @@ qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state)
 {
 	int old_val;
 	uint8_t shiftbits, mask;
+	uint8_t port_dstate_str_sz;
 
 	/* This will have to change when the max no. of states > 16 */
 	shiftbits = 4;
 	mask = (1 << shiftbits) - 1;
 
+	port_dstate_str_sz = sizeof(port_dstate_str) / sizeof(char *);
 	fcport->disc_state = state;
 	while (1) {
 		old_val = atomic_read(&fcport->shadow_disc_state);
@@ -121,7 +123,8 @@ qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state)
 		    old_val, (old_val << shiftbits) | state)) {
 			ql_dbg(ql_dbg_disc, fcport->vha, 0x2134,
 			    "FCPort %8phC disc_state transition: %s to %s - portid=%06x.\n",
-			    fcport->port_name, port_dstate_str[old_val & mask],
+			    fcport->port_name, (old_val & mask) < port_dstate_str_sz ?
+				    port_dstate_str[old_val & mask] : "Unknown",
 			    port_dstate_str[state], fcport->d_id.b24);
 			return;
 		}
Signature · 1 line
2.23.1
Reviewed-by on v2 7/8
#15 lore raw

Re: [PATCH v2 7/8] qla2xxx: klocwork - correct the index of array

Quoted 52 lines · Nilesh Javali

From: Bikash Hazarika <[email protected]>

Klocwork reported array 'port_dstate_str' of size 10 may use index value(s) 10..15.

Add a fix to correct the index of array.

---
v2:
- Remove the outer parenthesis.

drivers/scsi/qla2xxx/qla_inline.h | 5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_inline.h +4 -1
index cce6e425c121..946a39504a35 100644
@@ -109,11 +109,13 @@ qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state)
 {
 int old_val;
 uint8_t shiftbits, mask;
+ uint8_t port_dstate_str_sz;
 
 /* This will have to change when the max no. of states > 16 */
 shiftbits = 4;
 mask = (1 << shiftbits) - 1;
 
+ port_dstate_str_sz = sizeof(port_dstate_str) / sizeof(char *);
 fcport->disc_state = state;
 while (1) {
 old_val = atomic_read(&fcport->shadow_disc_state);
@@ -121,7 +123,8 @@ qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state)
   old_val, (old_val << shiftbits) | state)) {
 ql_dbg(ql_dbg_disc, fcport->vha, 0x2134,
   "FCPort %8phC disc_state transition: %s to %s - portid=%06x.\n",
-    fcport->port_name, port_dstate_str[old_val & mask],
+    fcport->port_name, (old_val & mask) < port_dstate_str_sz ?
+    port_dstate_str[old_val & mask] : "Unknown",
   port_dstate_str[state], fcport->d_id.b24);
 return;
 }
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
author maintainer
#16 lore raw

PATCH v2 8/8 qla2xxx: Update version to 10.02.08.400-k

In reply to Nilesh Javali
---
 drivers/scsi/qla2xxx/qla_version.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_version.h +2 -2
index 4d6f06fb156b..e3771923b0d7 100644
@@ -6,9 +6,9 @@
 /*
  * Driver version
  */
-#define QLA2XXX_VERSION      "10.02.08.300-k"
+#define QLA2XXX_VERSION      "10.02.08.400-k"
 
 #define QLA_DRIVER_MAJOR_VER	10
 #define QLA_DRIVER_MINOR_VER	2
 #define QLA_DRIVER_PATCH_VER	8
-#define QLA_DRIVER_BETA_VER	300
+#define QLA_DRIVER_BETA_VER	400
Signature · 1 line
2.23.1
Reviewed-by on v2 8/8
#17 lore raw

Re: [PATCH v2 8/8] qla2xxx: Update version to 10.02.08.400-k

Quoted 28 lines · Nilesh Javali

---
drivers/scsi/qla2xxx/qla_version.h | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_version.h +2 -2
index 4d6f06fb156b..e3771923b0d7 100644
@@ -6,9 +6,9 @@
 /*
 * Driver version
 */
-#define QLA2XXX_VERSION      "10.02.08.300-k"
+#define QLA2XXX_VERSION      "10.02.08.400-k"
 
 #define QLA_DRIVER_MAJOR_VER 10
 #define QLA_DRIVER_MINOR_VER 2
 #define QLA_DRIVER_PATCH_VER 8
-#define QLA_DRIVER_BETA_VER 300
+#define QLA_DRIVER_BETA_VER 400
Signature · 1 line
2.23.1
Signature · 1 line
Himanshu Madhani Oracle Linux Engineering
#18 lore raw
In reply to Nilesh Javali

Nilesh,

Quoted 2 lines

Please apply the qla2xxx driver klocwork fixes to the scsi tree at your earliest convenience.

Applied to 6.5/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#19 lore raw
In reply to Nilesh Javali
Quoted 9 lines · Nilesh Javali

Martin,

Please apply the qla2xxx driver klocwork fixes to
the scsi tree at your earliest convenience.

Thanks,
Nilesh

[...]

Applied to 6.5/scsi-queue, thanks!

[1/8] qla2xxx: klocwork - Array index may go out of bound

      https://git.kernel.org/mkp/scsi/c/d721b591b95c
[2/8] qla2xxx: klocwork - Fix potential null pointer dereference
      https://git.kernel.org/mkp/scsi/c/464ea494a40c
[3/8] qla2xxx: klocwork - avoid fcport pointer dereference
      https://git.kernel.org/mkp/scsi/c/6b504d06976f
[4/8] qla2xxx: klocwork - Check valid rport returned by fc_bsg_to_rport
      https://git.kernel.org/mkp/scsi/c/af73f23a2720
[5/8] qla2xxx: klocwork - Fix buffer overrun
      https://git.kernel.org/mkp/scsi/c/b68710a8094f
[6/8] qla2xxx: klocwork - pointer may be dereferenced
      https://git.kernel.org/mkp/scsi/c/00eca15319d9
[7/8] qla2xxx: klocwork - correct the index of array
      https://git.kernel.org/mkp/scsi/c/b1b9d3825df4
[8/8] qla2xxx: Update version to 10.02.08.400-k
      https://git.kernel.org/mkp/scsi/c/991e7ac609ee
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering