]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Fix NULL vs IS_ERR checking in dr_domain_init_resources
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 22 Dec 2021 06:54:53 +0000 (06:54 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:46 +0000 (20:38 -0800)
commit60277b4385521fdc26ef08423eafa9fd9addca4f
tree7d64e18ea0eee9aaf09ec36c19ac0d5e513f74b9
parentb9298a8e98f64fe310b543f883825ccb3324f0f9
net/mlx5: DR, Fix NULL vs IS_ERR checking in dr_domain_init_resources

The mlx5_get_uars_page() function  returns error pointers.
Using IS_ERR() to check the return value to fix this.

Fixes: 00a2ba0e66f8 ("net/mlx5: DR, Expose steering domain functionality")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c