# Re: \[PATCH\] net/mlx5: DR, Fix NULL vs IS\_ERR checking in dr\_domain\_init\_resources

- From: Saeed Mahameed \<hidden\>
- Date: 2021-12-22 19:10:26 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/12/1616995
- Thread: https://ratatoskr.run/netdev/2021/12/1616304/t.md

```text
On Wed, 2021-12-22 at 06:54 +0000, Miaoqian Lin wrote:
> The mlx5_get_uars_page() function  returns error pointers.
> Using IS_ERR() to check the return value to fix this.
> 
> Fixes: 4ec9e7b02697("net/mlx5: DR, Expose steering domain
> functionality")
> Signed-off-by: Miaoqian Lin <redacted>

Applied to net-mlx5.

Thanks.
```
