kernel_samsung_a53x/drivers/net/ethernet/amazon/ena
David Arinzon 47a3f1682e net: ena: Destroy correct number of xdp queues upon failure
[ Upstream commit 41db6f99b5489a0d2ef26afe816ef0c6118d1d47 ]

The ena_setup_and_create_all_xdp_queues() function freed all the
resources upon failure, after creating only xdp_num_queues queues,
instead of freeing just the created ones.

In this patch, the only resources that are freed, are the ones
allocated right before the failure occurs.

Fixes: 548c4940b9f1 ("net: ena: Implement XDP_TX action")
Signed-off-by: Shahar Itzko <itzko@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Link: https://lore.kernel.org/r/20231211062801.27891-2-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:49 +01:00
..
ena_admin_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_com.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_com.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_common_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_eth_com.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_eth_com.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_eth_io_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_netdev.c net: ena: Destroy correct number of xdp queues upon failure 2024-11-18 12:11:49 +01:00
ena_netdev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_pci_id_tbl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ena_regs_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00