net/mlx5: HWS, Add error checking to hws_bwc_rule_complex_hash_node_get()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 11 Jun 2025 13:14:32 +0000 (16:14 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Jun 2025 15:10:07 +0000 (08:10 -0700)
commit1619bdf4389c829f16af5c7d5b4fa5f1673614d7
treeea5881ac77e142e57c0554bb8b1bd30ccb4fcf5e
parent9337c54401a5bb6ac3c9f6c71dd2a9130cfba82e
net/mlx5: HWS, Add error checking to hws_bwc_rule_complex_hash_node_get()

Check for if ida_alloc() or rhashtable_lookup_get_insert_fast() fails.

Fixes: 17e0accac577 ("net/mlx5: HWS, support complex matchers")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Link: https://patch.msgid.link/aEmBONjyiF6z5yCV@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c