qla2x00t-32gbit: Suppress multiple Coverity complaint about out-of-bounds accesses

This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-05-27 22:07:32 +00:00
parent 6cd0355c1d
commit 9a9acef676
+4 -4
View File
@@ -1557,7 +1557,7 @@ qla2x00_fdmi_rhba(scsi_qla_host_t *vha)
/* Attributes */
ct_req->req.rhba.attrs.count =
cpu_to_be32(FDMI_HBA_ATTR_COUNT);
entries = ct_req->req.rhba.hba_identifier;
entries = &ct_req->req;
/* Nodename. */
eiter = entries + size;
@@ -1766,7 +1766,7 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *vha)
/* Attributes */
ct_req->req.rpa.attrs.count = cpu_to_be32(FDMI_PORT_ATTR_COUNT);
entries = ct_req->req.rpa.port_name;
entries = &ct_req->req;
/* FC4 types. */
eiter = entries + size;
@@ -1979,7 +1979,7 @@ qla2x00_fdmiv2_rhba(scsi_qla_host_t *vha)
/* Attributes */
ct_req->req.rhba2.attrs.count = cpu_to_be32(FDMIV2_HBA_ATTR_COUNT);
entries = ct_req->req.rhba2.hba_identifier;
entries = &ct_req->req;
/* Nodename. */
eiter = entries + size;
@@ -2338,7 +2338,7 @@ qla2x00_fdmiv2_rpa(scsi_qla_host_t *vha)
/* Attributes */
ct_req->req.rpa2.attrs.count = cpu_to_be32(FDMIV2_PORT_ATTR_COUNT);
entries = ct_req->req.rpa2.port_name;
entries = &ct_req->req;
/* FC4 types. */
eiter = entries + size;