svn commit: r355545 - stable/11/sys/dev/mlx5/mlx5_core

Konstantin Belousov kib at FreeBSD.org
Mon Dec 9 00:46:14 UTC 2019


Author: kib
Date: Mon Dec  9 00:46:13 2019
New Revision: 355545
URL: https://svnweb.freebsd.org/changeset/base/355545

Log:
  MFC r355288:
  mlx5: Do not try to enable fwdumps if scan space did not responded.

Modified:
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Mon Dec  9 00:45:31 2019	(r355544)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Mon Dec  9 00:46:13 2019	(r355545)
@@ -111,6 +111,10 @@ mlx5_fwdump_prep(struct mlx5_core_dev *mdev)
 			sz++;
 		addr = next_addr;
 	}
+	if (sz == 1) {
+		mlx5_core_warn(mdev, "no output from scan space\n");
+		goto unlock_vsc;
+	}
 	mdev->dump_rege = malloc(sz * sizeof(struct mlx5_crspace_regmap),
 	    M_MLX5_DUMP, M_WAITOK | M_ZERO);
 


More information about the svn-src-all mailing list