You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring
Replace NULL check with IS_ERR() check after calling page_pool_create()
since this function returns error pointers (ERR_PTR).
Using NULL check could lead to invalid pointer dereference.
Fixes: 8533b14 ("eth: mlx4: create a page pool for Rx")
Signed-off-by: Miaoqian Lin <[email protected]>
----
Changes in v3:
- fix IS_ERR
Changes in v2:
- use err = PTR_ERR(ring->pp);
v1 link: https://lore.kernel.org/all/[email protected]
v2 link: https://lore.kernel.org/all/[email protected]
Reviewed-by: Vadim Fedorenko <[email protected]>
Signed-off-by: NipaLocal <nipa@local>
0 commit comments