Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2022 20:34:16 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: 47cc457bd6c1 - main - mlx5: Fix mismatch in array bounds.
Message-ID:  <202212072034.2B7KYGfe088708@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=47cc457bd6c16352b47d3fb1288f745482a082af

commit 47cc457bd6c16352b47d3fb1288f745482a082af
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:32:54 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-07 20:32:54 +0000

    mlx5: Fix mismatch in array bounds.
    
    Reported by:    GCC -Warray-parameter
    Reviewed by:    hselasky, imp, emaste (earlier version)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D37549
---
 sys/dev/mlx5/vport.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mlx5/vport.h b/sys/dev/mlx5/vport.h
index c8eabd1051d4..844ae92602cd 100644
--- a/sys/dev/mlx5/vport.h
+++ b/sys/dev/mlx5/vport.h
@@ -84,7 +84,7 @@ int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev,
 int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev,
 				     u16 vport, u8 *addr);
 int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *dev,
-				      u16 vport, u8 mac[ETH_ALEN]);
+				      u16 vport, u8 *addr);
 int mlx5_set_nic_vport_current_mac(struct mlx5_core_dev *mdev, int vport,
 				   bool other_vport, u8 *addr);
 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev,



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