diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2025-08-28 20:18:58 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-01 13:06:10 -0700 |
commit | e580beaf43d563aaf457f1c7f934002355ebfe7b (patch) | |
tree | 0e9f30ebe3f4b7c398757bb6243ccf236b3e5534 /rust/helpers/wait.c | |
parent | c6dd1aa2cbb72b33e0569f3e71d95792beab5042 (diff) |
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 <linmq006@gmail.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250828121858.67639-1-linmq006@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/wait.c')
0 files changed, 0 insertions, 0 deletions