svn commit: r341900 - stable/12/sys/dev/mlx4/mlx4_core
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Dec 12 11:41:29 UTC 2018
Author: hselasky
Date: Wed Dec 12 11:41:28 2018
New Revision: 341900
URL: https://svnweb.freebsd.org/changeset/base/341900
Log:
MFC r341543:
mlx4: Zero initialize device capabilities to avoid use of uninitialized fields.
Sponsored by: Mellanox Technologies
Modified:
stable/12/sys/dev/mlx4/mlx4_core/mlx4_main.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/mlx4/mlx4_core/mlx4_main.c
==============================================================================
--- stable/12/sys/dev/mlx4/mlx4_core/mlx4_main.c Wed Dec 12 11:40:23 2018 (r341899)
+++ stable/12/sys/dev/mlx4/mlx4_core/mlx4_main.c Wed Dec 12 11:41:28 2018 (r341900)
@@ -2208,7 +2208,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
{
struct mlx4_priv *priv = mlx4_priv(dev);
struct mlx4_adapter adapter;
- struct mlx4_dev_cap dev_cap;
+ struct mlx4_dev_cap dev_cap = {};
struct mlx4_profile profile;
struct mlx4_init_hca_param init_hca;
u64 icm_size;
More information about the svn-src-stable
mailing list