Headline
CVE-2023-23006: net/mlx5: DR, Fix NULL vs IS_ERR checking in dr_domain_init_resources · torvalds/linux@6b8b425
In the Linux kernel before 5.15.13, drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c misinterprets the mlx5_get_uars_page return value (expects it to be NULL in the error case, whereas it is actually an error pointer).
Browse files
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: 4ec9e7b (“net/mlx5: DR, Expose steering domain functionality”) Signed-off-by: Miaoqian Lin [email protected] Signed-off-by: Saeed Mahameed [email protected]
- Loading branch information
Yuuoniy authored and Saeed Mahameed committed
Dec 23, 2021
1 parent d1652b7 commit 6b8b425