net/mlx5: fix missing validation of null pointer
authorDekel Peled <dekelp@mellanox.com>
Wed, 8 May 2019 08:29:39 +0000 (11:29 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 24 May 2019 12:56:36 +0000 (14:56 +0200)
commit3a3d398280bb5113caa5aa6ada6704792ea88c36
tree215b95c5b76a0a12fc747d1c9602b72b4a7b4851
parenta65c2d6637859fb6ed242e3f74239b05f80443a7
net/mlx5: fix missing validation of null pointer

Function mlx5_rxq_ibv_release() is called in several places.
Before each call except one, the input parameter is validated to make
sure it is not null.

This patch adds the validation where it is missing.
It also changes a priv_ prefix, left in a comment, to mlx5_ prefix.

Fixes: af4f09f28294 ("net/mlx5: prefix all functions with mlx5")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c