]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix error handling in RQ memory model registration
authorFushuai Wang <wangfushuai@baidu.com>
Thu, 26 Jun 2025 05:30:03 +0000 (13:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jun 2025 09:14:31 +0000 (10:14 +0100)
commit7012d4f3c7a82008113974108bf0c9c0553b424a
treeba31ab8d1583af6669ce15d08b60e3e0abf575af
parent20a0c20f82acf46d5731a11743e7c7ac4de25db8
net/mlx5e: Fix error handling in RQ memory model registration

Currently when xdp_rxq_info_reg_mem_model() fails in the XSK path, the
error handling incorrectly jumps to err_destroy_page_pool. While this
may not cause errors, we should make it jump to the correct location.

Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Acked-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c