Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2022 20:34:12 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: fb4a86164dc5 - main - ocs: Fix mismatch in array bounds.
Message-ID:  <202212072034.2B7KYCls088607@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=fb4a86164dc5ded5b42b7511d3bf48ae11ec891e

commit fb4a86164dc5ded5b42b7511d3bf48ae11ec891e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:31:33 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-07 20:31:33 +0000

    ocs: Fix mismatch in array bounds.
    
    Reported by:    GCC -Warray-parameter
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D37545
---
 sys/dev/ocs_fc/sli4.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ocs_fc/sli4.h b/sys/dev/ocs_fc/sli4.h
index c8bb9ab5c015..902235c410f7 100644
--- a/sys/dev/ocs_fc/sli4.h
+++ b/sys/dev/ocs_fc/sli4.h
@@ -3675,7 +3675,7 @@ typedef struct {
 } sli4_cmd_rq_cfg_t;
 extern int32_t sli_cmd_reg_fcfi(sli4_t *, void *, size_t, uint16_t,
 				sli4_cmd_rq_cfg_t rq_cfg[SLI4_CMD_REG_FCFI_NUM_RQ_CFG], uint16_t);
-extern int32_t sli_cmd_reg_fcfi_mrq(sli4_t *, void *, size_t, uint8_t, uint16_t, uint16_t, uint8_t, uint8_t , uint16_t, sli4_cmd_rq_cfg_t *);
+extern int32_t sli_cmd_reg_fcfi_mrq(sli4_t *, void *, size_t, uint8_t, uint16_t, uint16_t, uint8_t, uint8_t , uint16_t, sli4_cmd_rq_cfg_t rq_cfg[SLI4_CMD_REG_FCFI_NUM_RQ_CFG]);
 
 extern int32_t sli_cmd_reg_rpi(sli4_t *, void *, size_t, uint32_t, uint16_t, uint16_t, ocs_dma_t *, uint8_t, uint8_t);
 extern int32_t sli_cmd_reg_vfi(sli4_t *, void *, size_t, ocs_domain_t *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212072034.2B7KYCls088607>