net/mlx5: DR, Fix error return code in dr_domain_init_resources()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 5 Sep 2019 09:56:00 +0000 (09:56 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Sep 2019 21:44:42 +0000 (14:44 -0700)
commit83de91f826652e080d323f748509b6d943c8e33c
treed3e65e0ef7dd01334ca8f810996fde0e6bdf4f7c
parentf6a8cddfb50a5d530400f10c435f420b15962800
net/mlx5: DR, Fix error return code in dr_domain_init_resources()

Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 4ec9e7b02697 ("net/mlx5: DR, Expose steering domain functionality")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c