Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2019 00:43:12 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r355543 - stable/12/sys/dev/mlx5/mlx5_core
Message-ID:  <201912090043.xB90hC5X067094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Dec  9 00:43:11 2019
New Revision: 355543
URL: https://svnweb.freebsd.org/changeset/base/355543

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

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

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Mon Dec  9 00:42:12 2019	(r355542)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_fwdump.c	Mon Dec  9 00:43:11 2019	(r355543)
@@ -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);
 



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