diff options
| author | Miaoqian Lin <[email protected]> | 2025-08-28 12:18:58 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-09-01 20:06:10 +0000 |
| commit | e580beaf43d563aaf457f1c7f934002355ebfe7b (patch) | |
| tree | 0e9f30ebe3f4b7c398757bb6243ccf236b3e5534 /drivers/net/macsec.c | |
| parent | icmp: fix icmp_ndo_send address translation for reply direction (diff) | |
| download | kernel-e580beaf43d563aaf457f1c7f934002355ebfe7b.tar.gz kernel-e580beaf43d563aaf457f1c7f934002355ebfe7b.zip | |
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: 8533b14b3d65 ("eth: mlx4: create a page pool for Rx")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Vadim Fedorenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions
