svn commit: r352959 - head/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Oct 2 09:14:02 UTC 2019
Author: hselasky
Date: Wed Oct 2 09:14:01 2019
New Revision: 352959
URL: https://svnweb.freebsd.org/changeset/base/352959
Log:
Check return value of mlx5_vector2eqn() function in mlx5en.
MFC after: 3 days
Sponsored by: Mellanox Technologies
Modified:
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Oct 2 09:12:53 2019 (r352958)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Oct 2 09:14:01 2019 (r352959)
@@ -1914,12 +1914,14 @@ mlx5e_create_cq(struct mlx5e_priv *priv,
param->wq.buf_numa_node = 0;
param->wq.db_numa_node = 0;
+ err = mlx5_vector2eqn(mdev, eq_ix, &eqn_not_used, &irqn);
+ if (err)
+ return (err);
+
err = mlx5_cqwq_create(mdev, ¶m->wq, param->cqc, &cq->wq,
&cq->wq_ctrl);
if (err)
return (err);
-
- mlx5_vector2eqn(mdev, eq_ix, &eqn_not_used, &irqn);
mcq->cqe_sz = 64;
mcq->set_ci_db = cq->wq_ctrl.db.db;
More information about the svn-src-all
mailing list